Aracılığıyla paylaş


CompositionSurfaceBrush.VerticalAlignmentRatio Property

Definition

Controls the positioning of the horizontal axis of content with respect to the horizontal axis of the SpriteVisual. The value is clamped from 0.0f to 1.0f with 0.0f representing the top horizontal edge and 1.0f representing the bottom horizontal edge of the SpriteVisual. The default value is 0.5f.

public:
 property float VerticalAlignmentRatio { float get(); void set(float value); };
float VerticalAlignmentRatio();

void VerticalAlignmentRatio(float value);
public float VerticalAlignmentRatio { get; set; }
var single = compositionSurfaceBrush.verticalAlignmentRatio;
compositionSurfaceBrush.verticalAlignmentRatio = single;
Public Property VerticalAlignmentRatio As Single

Property Value

Single

float

The positioning of the horizontal axis of content with respect to the horizontal axis of the SpriteVisual.

Applies to