共用方式為


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

屬性值

列舉值,指定用來放置手寫檢視的錨點。 預設值為 Auto

範例

在這裡,我們將示範如何使用 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。

適用於

另請參閱