CompositeDesignerTheme CompositeDesignerTheme CompositeDesignerTheme CompositeDesignerTheme Class

定義

警告

此 API 現已淘汰。

提供 CompositeActivityDesigner 物件的主題設定。Provides theme settings to CompositeActivityDesigner objects.

public ref class CompositeDesignerTheme : System::Workflow::ComponentModel::Design::ActivityDesignerTheme
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class CompositeDesignerTheme : System.Workflow.ComponentModel.Design.ActivityDesignerTheme
type CompositeDesignerTheme = class
    inherit ActivityDesignerTheme
Public Class CompositeDesignerTheme
Inherits ActivityDesignerTheme
繼承
衍生
屬性

範例

下列範例示範如何建立自訂 CompositeDesignerTheme,其方式是從 CompositeDesignerTheme 類別衍生,並為新主題設定適當的屬性。The following example shows how to create a custom CompositeDesignerTheme by deriving from the CompositeDesignerTheme class and setting the appropriate properties for the new theme.

public class ParallelIfTheme : CompositeDesignerTheme
{
    public ParallelIfTheme(WorkflowTheme theme)
        : base(theme)
    {
        this.ShowDropShadow = true;
        this.ConnectorStartCap = LineAnchor.None;
        this.ConnectorEndCap = LineAnchor.None;
        this.BorderStyle = DashStyle.Dash;
        this.WatermarkImagePath = @"parallelIfWatermark.png";
        this.WatermarkAlignment = DesignerContentAlignment.Fill;
    }
}
Public Class ParallelIfTheme
    Inherits CompositeDesignerTheme

    Public Sub New(ByVal theme As WorkflowTheme)
        MyBase.new(theme)

        Me.ShowDropShadow = True
        Me.ConnectorStartCap = LineAnchor.None
        Me.ConnectorEndCap = LineAnchor.None
        Me.BorderStyle = DashStyle.Dash
        Me.WatermarkImagePath = "parallelIfWatermark.png"
        Me.WatermarkAlignment = DesignerContentAlignment.Fill
    End Sub
End Class

若要使用 CompositeActivityDesigner 上的主題,請將 ActivityDesignerThemeAttribute 套用至 CompositeActivityDesigner 類別。To use the theme on a CompositeActivityDesigner, apply the ActivityDesignerThemeAttribute to the CompositeActivityDesigner class.

[ActivityDesignerTheme(typeof(ParallelIfTheme))]
public class ParallelIfDesigner : ParallelActivityDesigner
<ActivityDesignerTheme(GetType(ParallelIfTheme))> _
Public Class ParallelIfDesigner
    Inherits ParallelActivityDesigner

備註

注意

此資料討論已被汰換的類型及命名空間。This material discusses types and namespaces that are obsolete. 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

CompositeDesignerTheme 類別控制 CompositeActivityDesigner 物件在工作流程設計介面上的外觀及操作。The CompositeDesignerTheme class controls the look and feel of a CompositeActivityDesigner object on a workflow design surface.

建構函式

CompositeDesignerTheme(WorkflowTheme) CompositeDesignerTheme(WorkflowTheme) CompositeDesignerTheme(WorkflowTheme) CompositeDesignerTheme(WorkflowTheme)

初始化 CompositeDesignerTheme 類別的新執行個體。Initializes a new instance of the CompositeDesignerTheme class.

屬性

ApplyTo ApplyTo ApplyTo ApplyTo

取得或設定設計工具主題要套用之設計工具類型的不合格名稱。Gets or sets the unqualified name of the designer type to which the designer theme is applied.

(Inherited from DesignerTheme)
BackColorEnd BackColorEnd BackColorEnd BackColorEnd

取得或設定 Color,做為在背景色彩中使用色彩漸層時的結束色彩。Gets or sets the Color to end with when using a color gradient for the background color.

(Inherited from ActivityDesignerTheme)
BackColorStart BackColorStart BackColorStart BackColorStart

取得或設定在背景中使用色彩漸層時的背景開始色彩。Gets or sets the starting color of the background when using a color gradient on the background.

(Inherited from ActivityDesignerTheme)
BackgroundStyle BackgroundStyle BackgroundStyle BackgroundStyle

取得或設定背景樣式。Gets or sets the background style.

(Inherited from ActivityDesignerTheme)
BoldFont BoldFont BoldFont BoldFont

取得主題的字型。Gets the font for the theme.

(Inherited from ActivityDesignerTheme)
BorderColor BorderColor BorderColor BorderColor

取得或設定主題的 BorderColorGets or sets the BorderColor for the theme.

(Inherited from ActivityDesignerTheme)
BorderPen BorderPen BorderPen BorderPen

取得主題的 BorderPen。Gets the BorderPen for the theme.

(Inherited from ActivityDesignerTheme)
BorderStyle BorderStyle BorderStyle BorderStyle

取得或設定用於框線的樣式。Gets or sets the style used for the border.

(Inherited from ActivityDesignerTheme)
BorderWidth BorderWidth BorderWidth BorderWidth

取得框線的寬度 (以像素為單位)。Gets the width of the border in pixels.

(Inherited from ActivityDesignerTheme)
ConnectorEndCap ConnectorEndCap ConnectorEndCap ConnectorEndCap

取得或設定決定出現在接點端點圖形的值。Gets or sets a value that determines the shape that appears at the end of a connector.

ConnectorSize ConnectorSize ConnectorSize ConnectorSize

取得接點的 SizeGets the Size of the connector.

ConnectorStartCap ConnectorStartCap ConnectorStartCap ConnectorStartCap

取得或設定決定出現在接點起點圖形的值。Gets or sets a value that determines the shape that appears at the beginning of a connector.

ContainingTheme ContainingTheme ContainingTheme ContainingTheme

取得封裝設計工具主題的工作流程主題。Gets the workflow theme that encapsulates the designer theme.

(Inherited from DesignerTheme)
DesignerGeometry DesignerGeometry DesignerGeometry DesignerGeometry

取得設計工具的幾何圖形。Gets the geometry of the designer.

(Inherited from ActivityDesignerTheme)
DesignerImage DesignerImage DesignerImage DesignerImage

取得與設計工具關聯的影像。Gets the image associated with the designer.

(Inherited from ActivityDesignerTheme)
DesignerImagePath DesignerImagePath DesignerImagePath DesignerImagePath

取得或設定設計工具的影像路徑。Gets or sets the image path for the designer.

(Inherited from ActivityDesignerTheme)
DesignerType DesignerType DesignerType DesignerType

取得或設定與設計工具主題關聯的設計工具類型。Gets or sets the type of the designer associated with the designer theme.

(Inherited from DesignerTheme)
ExpandButtonSize ExpandButtonSize ExpandButtonSize ExpandButtonSize

取得複合活動設計工具上展開按鈕的 SizeGets the Size of the expand button on the composite activity designer.

Font Font Font Font

取得主題所使用的文字字型。Gets the font of the text used by the theme.

(Inherited from ActivityDesignerTheme)
ForeColor ForeColor ForeColor ForeColor

取得或設定前景色彩。Gets or sets the color of the foreground.

(Inherited from ActivityDesignerTheme)
ForegroundBrush ForegroundBrush ForegroundBrush ForegroundBrush

取得與主題相關聯的 Brush 物件。Gets the Brush object associated with the theme.

(Inherited from ActivityDesignerTheme)
ForegroundPen ForegroundPen ForegroundPen ForegroundPen

取得 Pen,以用於繪製主題前景。Gets the Pen used for painting the foreground of the theme.

(Inherited from ActivityDesignerTheme)
ImageSize ImageSize ImageSize ImageSize

取得主題影像的大小。Gets the size of the image of the theme.

(Inherited from ActivityDesignerTheme)
ReadOnly ReadOnly ReadOnly ReadOnly

取得值,這個值會指出設計工具主題是否為唯讀。Gets a value that indicates whether the designer theme is read-only.

(Inherited from DesignerTheme)
ShowDropShadow ShowDropShadow ShowDropShadow ShowDropShadow

取得或設定值,表示複合設計工具主題是否在複合活動設計工具周圍顯示延伸陰影。Gets or sets a value indicating whether the composite designer theme will display drop shadows around the composite activity designer.

Size Size Size Size

取得設計工具的大小。Gets the size of the designer.

(Inherited from ActivityDesignerTheme)
WatermarkAlignment WatermarkAlignment WatermarkAlignment WatermarkAlignment

取得或設定 CompositeActivityDesigner 中浮水印影像的對齊方式。Gets or sets the alignment of the watermark image in the CompositeActivityDesigner.

WatermarkImage WatermarkImage WatermarkImage WatermarkImage

取得複合活動設計工具上的浮水印影像。Gets the watermark image to use on the composite activity designer.

WatermarkImagePath WatermarkImagePath WatermarkImagePath WatermarkImagePath

取得或設定複合活動設計工具上使用之浮水印影像的相對路徑。Gets or sets the relative path to the watermark image to use on the composite activity designer.

方法

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放 CompositeDesignerTheme 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the CompositeDesignerTheme and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBackgroundBrush(Rectangle) GetBackgroundBrush(Rectangle) GetBackgroundBrush(Rectangle) GetBackgroundBrush(Rectangle)

取得筆刷,用於繪製傳遞之矩形所指定的區域。Gets a brush used to paint the area specified by the rectangle passed.

(Inherited from ActivityDesignerTheme)
GetExpandButtonBackgroundBrush(Rectangle) GetExpandButtonBackgroundBrush(Rectangle) GetExpandButtonBackgroundBrush(Rectangle) GetExpandButtonBackgroundBrush(Rectangle)

取得定義複合活動設計工具上展開按鈕之背景顯示屬性的筆刷。Retrieves a brush that defines the background display properties of the expand button on the composite activity designer.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
Initialize() Initialize() Initialize() Initialize()

CompositeDesignerTheme(WorkflowTheme)建構函式提供的初始化後進行進一步的初始化工作。Performs further initialization tasks beyond those provided by the CompositeDesignerTheme(WorkflowTheme) constructor.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnAmbientPropertyChanged(AmbientProperty) OnAmbientPropertyChanged(AmbientProperty) OnAmbientPropertyChanged(AmbientProperty) OnAmbientPropertyChanged(AmbientProperty)

通知 CompositeDesignerTheme 物件,設計工具的環境屬性設定已改變。Notifies the CompositeDesignerTheme object that the ambient property settings for the designer have changed.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from DesignerTheme)

適用於