DesignerTheme.ReadOnly 屬性

定義

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

public:
 property bool ReadOnly { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool ReadOnly { get; }
member this.ReadOnly : bool
Public ReadOnly Property ReadOnly As Boolean

屬性值

如果 true 是唯讀的則為 DesignerTheme,否則為 falsetrue if DesignerTheme is read-only; otherwise, false. 預設為 falseThe default is false.

屬性

備註

如果 WorkflowTheme 初始化使用的 DesignerTheme 不是 null 參考 (在 Visual Basic 中為 Nothing),ReadOnly 便會從 WorkflowTheme.ReadOnly 屬性取得其值。If the WorkflowTheme that the DesignerTheme is initialized with is not a null reference (Nothing in Visual Basic), ReadOnly obtains its value from the WorkflowTheme.ReadOnly property. 如果 WorkflowTheme 為 null 參考 (Nothing),ReadOnlyfalseIf the WorkflowTheme is a null reference (Nothing), ReadOnly is false.

如果 WorkflowTheme 指派給 WorkflowTheme.CurrentTheme,則 ReadOnly 屬性便設定為 true,而且與此主題關聯之所有設計工具主題上的屬性都無法變更。If the WorkflowTheme is assigned to the WorkflowTheme.CurrentTheme, the ReadOnly property is set to true, and properties on all designer themes associated with this theme cannot be changed. 如果需要的話,可以在載入主題後以及指派到 CurrentTheme 之前,進行設定屬性。If required, properties can be set after loading the theme but before assigning it to the CurrentTheme.

適用於