WorkflowTheme 類別

定義

警告

此 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
繼承
WorkflowTheme
屬性
實作

備註

注意

此資料討論已被汰換的類型及命名空間。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 類別的新執行個體。Initializes a new instance of the WorkflowTheme class.

屬性

AmbientTheme

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

ContainingFileDirectory

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

CurrentTheme

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

Description

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

DesignerThemes

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

EnableChangeNotification

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

FilePath

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

LookupPath

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

Name

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

ReadOnly

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

RegistryKeyPath

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

StandardThemes

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

Type

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

Version

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

方法

Clone()

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

CreateStandardTheme(ThemeType)

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

Equals(Object)

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

(繼承來源 Object)
Finalize()

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

GenerateThemeFilePath()

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

GetDesignerTheme(ActivityDesigner)

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

GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
Load(IDesignerSerializationManager, String)

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

Load(String)

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

LoadThemeSettingFromRegistry()

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

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Save(String)

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

SaveThemeSettingToRegistry()

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

ToString()

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

(繼承來源 Object)

事件

ThemeChanged

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

明確介面實作

IDisposable.Dispose()

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

適用於