Delen via


HandwritingView.PlacementAlignment Property

Definition

Gets or sets a value that specifies the anchor point used to place the handwriting view over the control.

public:
 property HandwritingPanelPlacementAlignment PlacementAlignment { HandwritingPanelPlacementAlignment get(); void set(HandwritingPanelPlacementAlignment value); };
HandwritingPanelPlacementAlignment PlacementAlignment();

void PlacementAlignment(HandwritingPanelPlacementAlignment value);
public HandwritingPanelPlacementAlignment PlacementAlignment { get; set; }
var handwritingPanelPlacementAlignment = handwritingView.placementAlignment;
handwritingView.placementAlignment = handwritingPanelPlacementAlignment;
Public Property PlacementAlignment As HandwritingPanelPlacementAlignment

Property Value

An enunmeration value that specifies the anchor point used to place the handwriting view. The default is Auto.

Examples

Here, we show how to use the PlacementAlignment​ property of a TextBox HandwritingView to specify which anchor on the underlying text control is used to align the handwriting view. ​

<TextBox Name="SampleTextBox"​
    Height="50" Width="500" ​
    FontSize="36" FontFamily="Segoe UI" ​
    PlaceholderText="Try taping with your pen">​
        <TextBox.HandwritingView>​
            <HandwritingView PlacementAlignment="TopLeft"/>​
        </TextBox.HandwritingView>​
</TextBox>​

Remarks

The enumeration has these values: Auto, TopLeft, TopRight, BottomLeft, and BottomRight.

Applies to

See also