StyleSet.GetFont(StyleSetResourceId) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a specific Font from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there.
public:
System::Drawing::Font ^ GetFont(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ fontId);
public System.Drawing.Font GetFont (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId fontId);
member this.GetFont : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId -> System.Drawing.Font
Public Function GetFont (fontId As StyleSetResourceId) As Font
Parameters
- fontId
- StyleSetResourceId
Id of font to retrieve.
Returns
A clone of the requested Font.