CompositionSurfaceBrush.VerticalAlignmentRatio 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 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
float
The positioning of the horizontal axis of content with respect to the horizontal axis of the SpriteVisual.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for