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
屬性值
列舉值,指定用來放置手寫檢視的錨點。 預設值為 Auto。
範例
在這裡,我們將示範如何使用 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。
適用於
另請參閱
- 使用手寫檢視 文字輸入