Share via


FreeformActivityDesigner.OnThemeChange(ActivityDesignerTheme) 方法

定義

通知 FreeformActivityDesigner 與其相關聯的主題已變更。

protected:
 override void OnThemeChange(System::Workflow::ComponentModel::Design::ActivityDesignerTheme ^ newTheme);
protected override void OnThemeChange (System.Workflow.ComponentModel.Design.ActivityDesignerTheme newTheme);
override this.OnThemeChange : System.Workflow.ComponentModel.Design.ActivityDesignerTheme -> unit
Protected Overrides Sub OnThemeChange (newTheme As ActivityDesignerTheme)

參數

newTheme
ActivityDesignerTheme

ActivityDesignerTheme,包含更新的主題屬性設定。

備註

除非在衍生類別中覆寫,否則 OnThemeChange 永遠會將 Text 屬性設定為空字串,並將 Image 屬性設定為 null (在 Visual Basic 中為 Nothing)。

如果 ShowGrid 設定為 trueFreeformActivityDesigner 中每個子設計工具的位置都會移動到距離最近的格線。

適用於