ActivityDesignerTheme クラス

定義

注意事項

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

デザイン時環境でのデザイナーの外観プロパティの設定を提供します。

public ref class ActivityDesignerTheme : System::Workflow::ComponentModel::Design::DesignerTheme
public class ActivityDesignerTheme : System.Workflow.ComponentModel.Design.DesignerTheme
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class ActivityDesignerTheme : System.Workflow.ComponentModel.Design.DesignerTheme
type ActivityDesignerTheme = class
    inherit DesignerTheme
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityDesignerTheme = class
    inherit DesignerTheme
Public Class ActivityDesignerTheme
Inherits DesignerTheme
継承
ActivityDesignerTheme
派生
属性

ActivityDesignerTheme クラスを派生させて新しいテーマに適したプロパティを設定することによってカスタム ActivityDesignerTheme を作成する方法の例を、次に示します。

public class CustomActivityDesignerTheme : ActivityDesignerTheme
{
    public CustomActivityDesignerTheme(WorkflowTheme theme)
        : base(theme)
    {
        base.Initialize();
        this.BorderStyle = DashStyle.Solid;
        this.BorderColor = Color.FromArgb(0, 0, 0);
        this.BackColorStart = Color.FromArgb(37, 15, 242);
        this.BackColorEnd = Color.FromArgb(189, 184, 254);
        this.BackgroundStyle = LinearGradientMode.Vertical;
        this.ForeColor = Color.Black;
    }
}
Public Class CustomActivityDesignerTheme
    Inherits ActivityDesignerTheme
    Public Sub New(ByVal theme As WorkflowTheme)
        MyBase.new(theme)

        MyBase.Initialize()
        Me.BorderStyle = DashStyle.Solid
        Me.BorderColor = Color.FromArgb(0, 0, 0)
        Me.BackColorStart = Color.FromArgb(37, 15, 242)
        Me.BackColorEnd = Color.FromArgb(189, 184, 254)
        Me.BackgroundStyle = LinearGradientMode.Vertical
        Me.ForeColor = Color.Black
    End Sub
End Class

ActivityDesigner でテーマを使用するには、ActivityDesignerThemeAttribute クラスに ActivityDesigner を適用します。

[ActivityDesignerTheme(typeof(CustomActivityDesignerTheme))]
public class CustomActivityDesigner2 : ActivityDesigner
<ActivityDesignerTheme(GetType(CustomActivityDesignerTheme))> _
Public Class CustomActivityDesigner2
    Inherits ActivityDesigner

注釈

注意

ここでは、廃止された型と名前空間について説明します。 詳細については、「.NET 4.5 での Windows Workflow Foundation の新機能」を参照してください。

デザイナー テーマは、デザイナーの外観を定義します。 これには、デザイナーに定義される背景スタイル、前景スタイル、フォント、およびアイコンが含まれます。

デザイナーに固有のプロパティを構成できるようにするには、カスタム デザイナー テーマを作成します。 カスタム デザイナーのデザイナー テーマを指定しない場合は、基本クラスのテーマが使用されます。

コンストラクター

ActivityDesignerTheme(WorkflowTheme)

ActivityDesignerTheme のインスタンスを初期化します。

プロパティ

ApplyTo

デザイナー テーマが適用されるデザイナー型の非修飾名を取得または設定します。

(継承元 DesignerTheme)
BackColorEnd

背景色に色のグラデーションを使用するときに終わりの Color を取得または設定します。

BackColorStart

背景色に色のグラデーションを使用するときに背景の開始色を取得または設定します。

BackgroundStyle

背景スタイルを取得または設定します。

BoldFont

テーマのフォントを取得します。

BorderColor

テーマの BorderColor を取得または設定します。

BorderPen

テーマの BorderPen を取得します。

BorderStyle

境界線に使用されるスタイルを取得または設定します。

BorderWidth

境界線の幅 (ピクセル単位) を取得します。

ContainingTheme

デザイナー テーマをカプセル化したワークフロー テーマを取得します。

(継承元 DesignerTheme)
DesignerGeometry

デザイナーのジオメトリを取得します。

DesignerImage

デザイナーに関連付けられたイメージを取得します。

DesignerImagePath

デザイナー用のイメージのパスを取得または設定します。

DesignerType

デザイナー テーマに関連付けられたデザイナーの型を取得または設定します。

(継承元 DesignerTheme)
Font

テーマで使用されるテキストのフォントを取得します。

ForeColor

前景色を取得または設定します。

ForegroundBrush

テーマに関連付けられている Brush オブジェクトを取得します。

ForegroundPen

テーマの前景の描画に使用される Pen を取得します。

ImageSize

テーマのイメージのサイズを取得します。

ReadOnly

デザイナー テーマが読み取り専用かどうかを示す値を取得します。

(継承元 DesignerTheme)
Size

デザイナーのサイズを取得します。

メソッド

Dispose(Boolean)

ActivityDesignerTheme で使用されているアンマネージド リソースを解放します。オプションでマネージド リソースを解放します。

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetBackgroundBrush(Rectangle)

渡された四角形によって指定された領域を描画するのに使用されるブラシを取得します。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
Initialize()

デザイナー テーマを初期化します。

MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
OnAmbientPropertyChanged(AmbientProperty)

アンビエント設定の変更をシグナル通知するために呼び出されます。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

IDisposable.Dispose()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

(継承元 DesignerTheme)

適用対象