Share via


CompositionSurfaceBrush.HorizontalAlignmentRatio Property

Definition

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.

Applies to