HandwritingView.PlacementAlignment 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指定用于将手写视图置于控件上的定位点。
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
属性值
一个枚举值,该值指定用于放置手写视图的定位点。 默认值为 “自动”。
示例
在这里,我们演示如何使用 TextBoxHandwritingView 的 PlacementAlignment 属性来指定使用基础文本控件上的哪个定位点来对齐手写视图。
<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。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈