共用方式為


StyleSet.OverrideFontWorker Method

Definition

Overrides the specified Font in the StyleSet.

protected:
 virtual void OverrideFontWorker(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ fontId, Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ baseFontId, Microsoft::VisualStudio::Modeling::Diagrams::FontSettings ^ fontSettings);
protected virtual void OverrideFontWorker (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId fontId, Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId baseFontId, Microsoft.VisualStudio.Modeling.Diagrams.FontSettings fontSettings);
abstract member OverrideFontWorker : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId * Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId * Microsoft.VisualStudio.Modeling.Diagrams.FontSettings -> unit
override this.OverrideFontWorker : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId * Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId * Microsoft.VisualStudio.Modeling.Diagrams.FontSettings -> unit
Protected Overridable Sub OverrideFontWorker (fontId As StyleSetResourceId, baseFontId As StyleSetResourceId, fontSettings As FontSettings)

Parameters

fontId
StyleSetResourceId

The new fontId for the resource to put into this StyleSet.

baseFontId
StyleSetResourceId

The base fontId for the resource in the parent StyleSet.

fontSettings
FontSettings

FontSettings for what is allowed to override.

Applies to