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

설명

참고

이 자료에서는 더 이상 사용되지 않는 형식과 네임스페이스에 대해 설명합니다. 자세한 내용은 Deprecated Types in Windows Workflow Foundation 4.5(Windows Workflow Foundation 4.5에서 사용되지 않는 형식)를 참조하세요.

디자이너 테마는 디자이너의 모양 및 느낌을 정의합니다. 여기에는 디자이너에 정의된 배경 스타일, 전경 스타일, 글꼴 및 아이콘이 포함되어 있습니다.

디자이너에 고유한 속성에 구성 기능을 제공하기 위해 사용자 지정 디자이너 테마를 만들 수 있습니다. 사용자 지정 디자이너의 디자이너 테마를 지정하지 않을 경우에는 기본 클래스의 테마가 사용됩니다.

생성자

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)

적용 대상