Visual.VisualXSnappingGuidelines Visual.VisualXSnappingGuidelines Visual.VisualXSnappingGuidelines Visual.VisualXSnappingGuidelines Property

定義

取得或設定 X 座標 (垂直) 導線集合。Gets or sets the x-coordinate (vertical) guideline collection.

public:  property System::Windows::Media::DoubleCollection ^ VisualXSnappingGuidelines {  protected public:
System::Windows::Media::DoubleCollection ^ get(); protected:
 void set(System::Windows::Media::DoubleCollection ^ value); };
public System.Windows.Media.DoubleCollection VisualXSnappingGuidelines { protected internal get; protected set; }
member this.VisualXSnappingGuidelines : System.Windows.Media.DoubleCollection with get, set
Public Property VisualXSnappingGuidelines As DoubleCollection

屬性值

視覺物件的 X 座標導線集合。The x-coordinate guideline collection of the visual.

備註

像素貼齊功能是,讓物件邊緣的裝置特定像素轉譯內容的配置固定的程序。Pixel snapping is the process in which content layout is fixed so that object edges are rendered on device-specific pixels. WPFWPF 圖形系統會使用裝置獨立單位來啟用解析度和裝置獨立性。The WPFWPF graphics system uses device-independent units to enable resolution and device independence. 每個裝置獨立像素都會依系統的 DPI (每英吋的點數)dots per inch (dpi) 設定自動進行調整。Each device independent pixel automatically scales with the system's DPI (每英吋的點數)dots per inch (dpi) setting. 這讓 WPFWPF 應用程式針對不同的 DPIdpi 設定進行適當調整,並自動讓應用程式感知 DPIdpiThis provides WPFWPF applications proper scaling for different DPIdpi settings and makes the application automatically DPIdpi-aware.

不過,這DPIdpi獨立性可以建立不規則的邊緣轉譯,由於消除鋸齒。However, this DPIdpi independence can create irregular edge rendering due to anti-aliasing. 這些成品,通常被視為模糊或 「 軟性 」 的邊緣,就會發生的一個邊緣位置落在裝置像素,而不是裝置像素之間。These artifacts, commonly seen as blurry or "soft" edges, can occur when the location of an edge falls in the middle of a device pixel rather than between device pixels. 若要解決這個問題,WPFWPF提供 「 貼齊 」 裝置的像素,消除柔和的邊界所產生的消除鋸齒視覺化樹狀結構中的物件邊緣的方式。To address this issue, WPFWPF provides a way for object edges in a visual tree to "snap" to device pixels, eliminating the soft edges produced by anti-aliasing.

適用於

另請參閱