EdgeMode 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
決定如何呈現非文字繪圖基本類型的邊緣。
public enum class EdgeMode
public enum EdgeMode
type EdgeMode =
Public Enum EdgeMode
- 繼承
欄位
| 名稱 | 值 | Description |
|---|---|---|
| Unspecified | 0 | 沒有指定邊際模式。 不要更改非文字繪製圖元目前的邊緣模式。 這是預設值。 |
| Aliased | 1 | 將非文字繪圖原語的邊緣渲染成鋸齒邊。 |
範例
以下範例展示了如何使用 RenderOptions.SetEdgeMode 該方法將繪圖原語的邊緣模式設定為 Aliased:
// Set the edge mode to aliased for the visual and any descendant drawing primitives it has.
RenderOptions.SetEdgeMode((DependencyObject)myVisual, EdgeMode.Aliased);
' Set the edge mode to aliased for the visual and any descendant drawing primitives it has.
RenderOptions.SetEdgeMode(CType(myVisual, DependencyObject), EdgeMode.Aliased)
備註
文字物件始終透過抗鋸齒顯示,且不受邊緣模式值設定的影響。 非文字繪製原語(如 Ellipse 和 Polygon)的預設值為 Unspecified。
當你設定視覺物件的邊緣模式值時,該視覺物件的所有子繪圖原語都會設定為相同的 EdgeMode 值。