StyleSet.AddFont Method
Add a new Font to this StyleSet.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Sub AddFont ( _
newFontId As StyleSetResourceId, _
baseFontId As StyleSetResourceId, _
fontSettings As FontSettings _
)
public void AddFont(
StyleSetResourceId newFontId,
StyleSetResourceId baseFontId,
FontSettings fontSettings
)
public:
void AddFont(
StyleSetResourceId^ newFontId,
StyleSetResourceId^ baseFontId,
FontSettings^ fontSettings
)
member AddFont :
newFontId:StyleSetResourceId *
baseFontId:StyleSetResourceId *
fontSettings:FontSettings -> unit
public function AddFont(
newFontId : StyleSetResourceId,
baseFontId : StyleSetResourceId,
fontSettings : FontSettings
)
Parameters
newFontId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceIdId of the new font to create.
baseFontId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceIdId of the font on which to base the new one.
fontSettings
Type: Microsoft.VisualStudio.Modeling.Diagrams.FontSettingsSettings flags for the Font's overridden or immutable properties.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.