WorkflowTheme WorkflowTheme WorkflowTheme WorkflowTheme Class



此 API 現已淘汰。

為設計階段環境的工作流程提供外觀及操作屬性設定。Provides the look and feel property settings to a workflow in design-time environment.

public ref class WorkflowTheme sealed : IDisposable
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class WorkflowTheme : IDisposable
type WorkflowTheme = class
    interface IDisposable
Public NotInheritable Class WorkflowTheme
Implements IDisposable



此資料討論已被汰換的類型及命名空間。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.

工作流程主題定義了工作流程設計介面的外觀及操作。Workflow themes define the look and feel of a workflow design surface. 這包含針對工作流程定義的背景樣式、前景樣式、字型和圖示。This includes background styles, foreground styles, fonts, and icons defined for the workflow.

WorkflowTheme 為針對特定工作流程定義的主題。A WorkflowTheme is a theme defined for a specific workflow. 如果不需要特定的工作流程主題,可將 AmbientTheme 類別用做預設屬性。The AmbientTheme class can be used for default properties if a specific workflow theme is not desired.


WorkflowTheme() WorkflowTheme() WorkflowTheme() WorkflowTheme()

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


AmbientTheme AmbientTheme AmbientTheme AmbientTheme

取得與 AmbientTheme 相關聯的 WorkflowThemeGets the AmbientTheme associated with the WorkflowTheme.

ContainingFileDirectory ContainingFileDirectory ContainingFileDirectory ContainingFileDirectory

取得 FilePath 的目錄部分。Gets the directory part of the FilePath.

CurrentTheme CurrentTheme CurrentTheme CurrentTheme

取得或設定目前的主題。Gets or sets the current theme.

Description Description Description Description

取得或設定主題的描述。Gets or sets the description of the theme.

DesignerThemes DesignerThemes DesignerThemes DesignerThemes

取得與工作流程關聯的設計工具主題清單。Gets a list of designer themes associated with the workflow.

EnableChangeNotification EnableChangeNotification EnableChangeNotification EnableChangeNotification

取得或設定值,表示是否啟用變更通知。Gets or sets a value that indicates whether to enable change notification.

FilePath FilePath FilePath FilePath

取得或設定主題的檔案路徑。Gets or sets the file path for the theme.

LookupPath LookupPath LookupPath LookupPath

取得登錄中的檔案路徑。Gets the file path from the registry.

Name Name Name Name

取得或設定主題的名稱。Gets or sets the name of the theme.

ReadOnly ReadOnly ReadOnly ReadOnly

取得或設定值,這個值指示工作流程主題是否為唯讀。Gets or sets a value that indicates whether the workflow theme is read-only.

RegistryKeyPath RegistryKeyPath RegistryKeyPath RegistryKeyPath

取得主題的登錄機碼路徑。Gets the registry key path for the theme.

StandardThemes StandardThemes StandardThemes StandardThemes

取得標準主題清單。Gets the list of standard themes.

Type Type Type Type

取得主題型別。Gets the type of the theme.

Version Version Version Version

取得或設定主題的版本。Gets or sets the version of the theme.


Clone() Clone() Clone() Clone()

建立重複的主題。Creates a duplicate theme.

CreateStandardTheme(ThemeType) CreateStandardTheme(ThemeType) CreateStandardTheme(ThemeType) CreateStandardTheme(ThemeType)

建立標準主題。Creates a standard theme.

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

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

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

在衍生類別中覆寫時,可讓物件決定性地清除任何資源。When overridden in a derived class, allows an object to clean up any resources deterministically.

GenerateThemeFilePath() GenerateThemeFilePath() GenerateThemeFilePath() GenerateThemeFilePath()

產生主題的檔案路徑。Generates a file path for the theme.

GetDesignerTheme(ActivityDesigner) GetDesignerTheme(ActivityDesigner) GetDesignerTheme(ActivityDesigner) GetDesignerTheme(ActivityDesigner)

取得指定之 ActivityDesigner 的主題。Gets the theme for the specified ActivityDesigner.

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)
Load(IDesignerSerializationManager, String) Load(IDesignerSerializationManager, String) Load(IDesignerSerializationManager, String) Load(IDesignerSerializationManager, String)

使用序列化管理員從指定的路徑載入新主題。Loads a new theme from the specified path using a serialization manager.

Load(String) Load(String) Load(String) Load(String)

從指定的檔案路徑載入主題。Loads the theme from the specified file path.

LoadThemeSettingFromRegistry() LoadThemeSettingFromRegistry() LoadThemeSettingFromRegistry() LoadThemeSettingFromRegistry()

從登錄載入主題。Loads a theme from the registry.

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

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

(Inherited from Object)
Save(String) Save(String) Save(String) Save(String)

將主題儲存為檔案。Saves a theme to a file.

SaveThemeSettingToRegistry() SaveThemeSettingToRegistry() SaveThemeSettingToRegistry() SaveThemeSettingToRegistry()

將主題儲存至登錄。Saves a theme to the registry.

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

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

(Inherited from Object)


ThemeChanged ThemeChanged ThemeChanged ThemeChanged

發生於主題變更時。Occurs when a theme changes.


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

釋放由 WorkflowTheme 使用的 Managed 資源。Releases the managed resources used by the WorkflowTheme.