IInkPresenterStencil インターフェイス

定義

InkCanvas に半透明のオーバーレイとして表示されるビジュアル ステンシルを表します。

ステンシルは、インク ストロークのレンダリング方法を変換します。

  • ペン先が距離しきい値 (余白) 内にある場合は、インク ストロークをステンシルの端にスナップします。
  • マスクとして機能し、ステンシルによって隠された領域内のインク ストロークの描画を防ぎます。

ステンシルは、プログラムとユーザーの両方で操作できます。 また、 InkCanvas を使用してスケーリングと翻訳も行います。

public interface class IInkPresenterStencil
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.Guid(819015021, 15878, 19714, 177, 22, 39, 127, 181, 216, 173, 220)]
struct IInkPresenterStencil
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.Guid(819015021, 15878, 19714, 177, 22, 39, 127, 181, 216, 173, 220)]
public interface IInkPresenterStencil
Public Interface IInkPresenterStencil
派生
属性

Windows の要件

デバイス ファミリ
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v3.0 で導入)

プロパティ

BackgroundColor

IInkPresenterStencil オブジェクトの背景色を取得または設定します。

ForegroundColor

IInkPresenterStencil オブジェクトの前景要素の色を取得または設定します。

IsVisible

IInkPresenterStencil オブジェクトを表示するかどうかを取得または設定します。

Kind

InkCanvas に表示する IInkPresenterStencil オブジェクトの型を取得します。

Transform

InkCanvas の 2-D 座標空間内の IInkPresenterStencil オブジェクトの位置と回転角度を取得または設定します。

位置と回転はどちらも、 InkCanvas の原点を基準としたステンシルの左上隅に基づいています。

適用対象

こちらもご覧ください