HandwritingView.PlacementAlignment 属性

定义

获取或设置一个值,该值指定用于将手写视图放置在控件上的定位点。

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

属性值

一个枚举值,该值指定用于放置手写视图的定位点。 默认值为 自动

示例

在这里,我们将演示如何使用 TextBoxHandwritingViewPlacementAlignment 属性来指定用于对齐手写视图的基础文本控件上的定位点。 ​

<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>​

注解

枚举具有以下值:Auto、TopLeft、TopRight、BottomLeft 和 BottomRight。

适用于

另请参阅