CompositionSurfaceBrush.HorizontalAlignmentRatio Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Controls the positioning of the vertical axis of content with respect to the vertical axis of the SpriteVisual. The value is clamped from 0.0f to 1.0f with 0.0f representing the left vertical edge and 1.0f representing the right vertical edge of the SpriteVisual.
public:
property float HorizontalAlignmentRatio { float get(); void set(float value); };
float HorizontalAlignmentRatio();
void HorizontalAlignmentRatio(float value);
public float HorizontalAlignmentRatio { get; set; }
var single = compositionSurfaceBrush.horizontalAlignmentRatio;
compositionSurfaceBrush.horizontalAlignmentRatio = single;
Public Property HorizontalAlignmentRatio As Single
Property Value
Single
float
The default value is 0.5f.