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 の値があります。

適用対象

こちらもご覧ください

  • 手書きビューを使用してテキスト入力を