Visual.VisualYSnappingGuidelines 屬性

定義

取得或設定 Y 座標 (水平) 導線集合。

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

屬性值

DoubleCollection

視覺效果的 Y 座標 (垂直) 導線集合。

備註

圖元貼齊是固定內容配置的程式,讓物件邊緣在裝置特定的圖元上呈現。 WPF 圖形系統使用與裝置無關的單位來啟用解析度和裝置獨立性。 每個裝置獨立圖元都會使用系統的每英吋點自動縮放, (DPI) 設定。 這會為不同的 DPI 設定提供 WPF 應用程式適當的縮放比例,並讓應用程式自動感知 DPI。

不過,此 DPI 獨立性可能會因為消除鋸齒而建立不規則的邊緣轉譯。 當邊緣的位置落在裝置圖元中間,而不是在裝置圖元之間時,這些成品通常會顯示為模糊或「柔邊」邊緣。 為了解決此問題,WPF 提供視覺化樹狀結構中的物件邊緣「貼齊」到裝置圖元的方式,消除消除鋸齒所產生的軟邊緣。

適用於

另請參閱