次の方法で共有


DrawingAttributes クラス

描画時にインクに適用される属性を表します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink (Microsoft.Ink.dll 内)

構文

'宣言
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class DrawingAttributes _
    Implements ICloneable
'使用
Dim instance As DrawingAttributes
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class DrawingAttributes : ICloneable
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class DrawingAttributes : ICloneable
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public class DrawingAttributes implements ICloneable
public class DrawingAttributes implements ICloneable

解説

これらの描画属性をストロークまたはカーソルに関連付けて、色、幅、透明度などの設定を指定できます。

ストロークの描画属性を指定するには、Stroke オブジェクトの DrawingAttributes プロパティを使用します。ストロークのコレクション内のすべてのストロークの描画属性を指定するには、Strokes コレクションの ModifyDrawingAttributes メソッドを呼び出します。

InkCollector オブジェクト、InkOverlay オブジェクト、および InkPicture コントロールは、同じカーソルに異なるセットの描画属性を指定できます。Cursor オブジェクトの DrawingAttributes プロパティを使用して、カーソルの描画属性を取得または設定します。

継承階層

System.Object
  Microsoft.Ink.DrawingAttributes

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

DrawingAttributes メンバ

Microsoft.Ink 名前空間

Stroke.DrawingAttributes

Strokes.ModifyDrawingAttributes

Cursor.DrawingAttributes

InkCollector.DefaultDrawingAttributes

InkOverlay.DefaultDrawingAttributes

InkPicture.DefaultDrawingAttributes

InkEdit.DrawingAttributes