TextField.GetFont(ShapeElement) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la police avec laquelle dessiner pour l'instance ShapeElement spécifiée.
public:
virtual System::Drawing::Font ^ GetFont(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual System.Drawing.Font GetFont (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetFont : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> System.Drawing.Font
override this.GetFont : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> System.Drawing.Font
Public Overridable Function GetFont (parentShape As ShapeElement) As Font
Paramètres
- parentShape
- ShapeElement
ShapeElement sur laquelle dessiner.
Retours
Police avec laquelle dessiner pour l’instance ShapeElement spécifiée.
Remarques
Par défaut, cette méthode retourne la police par défaut de ce ShapeField.
Pour modifier dynamiquement le stylet pour ce ShapeField, envisagez d’abord de remplacer GetFontId. Si cette méthode est inadéquate, substituez cette méthode.