FormattedText.SetFontFamily Méthode
Définition
Définit la famille de polices pour l'objet FormattedText.Sets the font family for the FormattedText object.
Surcharges
SetFontFamily(FontFamily, Int32, Int32) |
Définit la famille de polices pour un sous-ensemble spécifié de caractères dans l'objet FormattedText.Sets the font family for a specified subset of characters in the FormattedText object. |
SetFontFamily(String, Int32, Int32) |
Définit la famille de polices pour un sous-ensemble spécifié de caractères dans l'objet FormattedText.Sets the font family for a specified subset of characters in the FormattedText object. |
SetFontFamily(String) |
Définit la famille de polices pour le jeu entier de caractères dans l'objet FormattedText.Sets the font family for the entire set of characters in the FormattedText object. |
SetFontFamily(FontFamily) |
Définit la famille de polices pour un objet FormattedText.Sets the font family for a FormattedText object. |
SetFontFamily(FontFamily, Int32, Int32)
Définit la famille de polices pour un sous-ensemble spécifié de caractères dans l'objet FormattedText.Sets the font family for a specified subset of characters in the FormattedText object.
public:
void SetFontFamily(System::Windows::Media::FontFamily ^ fontFamily, int startIndex, int count);
public void SetFontFamily (System.Windows.Media.FontFamily fontFamily, int startIndex, int count);
member this.SetFontFamily : System.Windows.Media.FontFamily * int * int -> unit
Public Sub SetFontFamily (fontFamily As FontFamily, startIndex As Integer, count As Integer)
Paramètres
- fontFamily
- FontFamily
FontFamily à utiliser pour la mise en forme du texte.The FontFamily to use for text formatting.
- startIndex
- Int32
L'index de départ du caractère initial auquel appliquer la modification de famille de polices.The starting index of the initial character to apply the font family change to.
- count
- Int32
Le nombre des caractères auxquels la modification devrait s'appliquer.The number of characters the change should apply to.
Remarques
Pour définir la valeur de la famille de polices pour la chaîne de texte entière, utilisez la SetFontFamily méthode.To set the font family value for the entire text string, use the SetFontFamily method.
S’applique à
SetFontFamily(String, Int32, Int32)
Définit la famille de polices pour un sous-ensemble spécifié de caractères dans l'objet FormattedText.Sets the font family for a specified subset of characters in the FormattedText object.
public:
void SetFontFamily(System::String ^ fontFamily, int startIndex, int count);
public void SetFontFamily (string fontFamily, int startIndex, int count);
member this.SetFontFamily : string * int * int -> unit
Public Sub SetFontFamily (fontFamily As String, startIndex As Integer, count As Integer)
Paramètres
- fontFamily
- String
Une chaîne qui construit le FontFamily à utiliser pour la mise en forme du texte.A string that constructs the FontFamily to use for text formatting. Les polices de secours sont autorisées ; pour plus de détails, consultez FontFamily.Fallbacks are permitted; for details, see FontFamily.
- startIndex
- Int32
L'index de départ du caractère initial auquel appliquer la modification de famille de polices.The starting index of the initial character to apply the font family change to.
- count
- Int32
Le nombre des caractères auxquels la modification devrait s'appliquer.The number of characters the change should apply to.
Remarques
Pour définir la valeur de la famille de polices pour la chaîne de texte entière, utilisez la SetFontFamily méthode.To set the font family value for the entire text string, use the SetFontFamily method.
S’applique à
SetFontFamily(String)
Définit la famille de polices pour le jeu entier de caractères dans l'objet FormattedText.Sets the font family for the entire set of characters in the FormattedText object.
public:
void SetFontFamily(System::String ^ fontFamily);
public void SetFontFamily (string fontFamily);
member this.SetFontFamily : string -> unit
Public Sub SetFontFamily (fontFamily As String)
Paramètres
- fontFamily
- String
Une chaîne qui construit le FontFamily à utiliser pour la mise en forme du texte.A string that constructs the FontFamily to use for text formatting. Les polices de secours sont autorisées ; pour plus de détails, consultez FontFamily.Fallbacks are permitted; for details, see FontFamily.
Remarques
Cette méthode définit la valeur de la famille de polices pour la chaîne de texte entière.This method sets the font family value for the entire text string. Pour définir la valeur de famille de polices pour un sous-ensemble de la chaîne de texte, utilisez la SetFontFamily(String, Int32, Int32) méthode.To set the font family value for a subset of the text string, use the SetFontFamily(String, Int32, Int32) method.
S’applique à
SetFontFamily(FontFamily)
Définit la famille de polices pour un objet FormattedText.Sets the font family for a FormattedText object.
public:
void SetFontFamily(System::Windows::Media::FontFamily ^ fontFamily);
public void SetFontFamily (System.Windows.Media.FontFamily fontFamily);
member this.SetFontFamily : System.Windows.Media.FontFamily -> unit
Public Sub SetFontFamily (fontFamily As FontFamily)
Paramètres
- fontFamily
- FontFamily
FontFamily à utiliser pour la mise en forme du texte.The FontFamily to use for text formatting.
Remarques
Cette méthode définit la valeur de la famille de polices pour la chaîne de texte entière.This method sets the font family value for the entire text string. Pour définir la valeur de famille de polices pour un sous-ensemble de la chaîne de texte, utilisez la SetFontFamily méthode.To set the font family value for a subset of the text string, use the SetFontFamily method.