Skip to main content
.NET Framework Class Library
VisualVisualYSnappingGuidelines Property

Gets or sets the y-coordinate (horizontal) guideline collection.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
Syntax
Protected Friend Property VisualYSnappingGuidelines As [%$TOPIC/ms595616_en-us_VS_110_1_0_0_0_0%]
protected internal [%$TOPIC/ms595616_en-us_VS_110_1_0_1_0_0%] VisualYSnappingGuidelines { get; protected set; }
protected public:
property [%$TOPIC/ms595616_en-us_VS_110_1_0_2_0_0%]^ VisualYSnappingGuidelines {
	[%$TOPIC/ms595616_en-us_VS_110_1_0_2_0_1%]^ get ();
	protected: void set ([%$TOPIC/ms595616_en-us_VS_110_1_0_2_0_2%]^ value);
}
member VisualYSnappingGuidelines : [%$TOPIC/ms595616_en-us_VS_110_1_0_3_0_0%] with get, set
function get VisualYSnappingGuidelines () : [%$TOPIC/ms595616_en-us_VS_110_1_0_4_0_0%] 
protected function set VisualYSnappingGuidelines (value : [%$TOPIC/ms595616_en-us_VS_110_1_0_4_0_1%])

Property Value

Type: System.Windows.MediaDoubleCollection
The y-coordinate guideline collection of the visual.
Remarks

Pixel snapping is the process in which content layout is fixed so that object edges are rendered on device-specific pixels. The WPF graphics system uses device-independent units to enable resolution and device independence. Each device independent pixel automatically scales with the system's dots per inch (dpi) setting. This provides WPF applications proper scaling for different dpi settings and makes the application automatically dpi-aware.

However, this dpi 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. To address this issue, WPF provides a way for object edges in a visual tree to "snap" to device pixels, eliminating the soft edges produced by anti-aliasing.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1