DesignerTheme.OnAmbientPropertyChanged(AmbientProperty) 方法

定義

通知設計工具主題類別,設計工具的環境屬性設定已變更。Notifies the designer theme class that the ambient property settings for the designer have changed.

public:
 virtual void OnAmbientPropertyChanged(System::Workflow::ComponentModel::Design::AmbientProperty ambientProperty);
public virtual void OnAmbientPropertyChanged (System.Workflow.ComponentModel.Design.AmbientProperty ambientProperty);
abstract member OnAmbientPropertyChanged : System.Workflow.ComponentModel.Design.AmbientProperty -> unit
override this.OnAmbientPropertyChanged : System.Workflow.ComponentModel.Design.AmbientProperty -> unit

參數

ambientProperty
AmbientProperty

設計工具主題現在應使用的 AmbientProperty 列舉值。The AmbientProperty enumeration value that the designer theme should now use.

備註

DesignerTheme 列舉值從 AmbientProperty 變更至 DesignerSize 或從 OperatingSystemSetting 變更至 OperatingSystemSetting 時,繼承自 DesignerSize 的類別會使用此方法來進行必要的變更。Classes that inherit from DesignerTheme use this method to make necessary changes when the AmbientProperty enumeration value changes from DesignerSize to OperatingSystemSetting or OperatingSystemSetting to DesignerSize.

AmbientProperty 列舉會決定設計工具主題取得其環境屬性設定的位置。The AmbientProperty enumeration determines where a designer theme obtains its ambient property settings. 如果已設定 DesignerSize 值,設計工具主題類別將從 AmbientTheme 屬性取得其環境設定。If the DesignerSize value is set, the designer theme class obtains its ambient settings from the AmbientTheme property. 如果已設定 OperatingSystemSetting 值,設計工具主題類別將從設計工具安裝的作業系統取得其環境設定。If the OperatingSystemSetting value is set, the designer theme class obtains its ambient settings from the operating system on which the designer is installed.

適用於