Compartilhar via


TextFormattingRunProperties.CreateTextFormattingRunProperties Method

Definition

Overloads

CreateTextFormattingRunProperties()

Initializes a new instance of TextFormattingRunProperties.

CreateTextFormattingRunProperties(Typeface, Double, Color)

Initializes a new instance of TextFormattingRunProperties with the specified options.

CreateTextFormattingRunProperties(Brush, Brush, Typeface, Nullable<Double>, Nullable<Double>, TextDecorationCollection, TextEffectCollection, CultureInfo)

Initializes a new instance of TextFormattingRunProperties with the specified options.

CreateTextFormattingRunProperties()

Initializes a new instance of TextFormattingRunProperties.

public:
 static Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ CreateTextFormattingRunProperties();
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)]
public static Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties CreateTextFormattingRunProperties ();
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)>]
static member CreateTextFormattingRunProperties : unit -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Shared Function CreateTextFormattingRunProperties () As TextFormattingRunProperties

Returns

The default TextFormattingRunProperties for the system.

Attributes

Applies to

CreateTextFormattingRunProperties(Typeface, Double, Color)

Initializes a new instance of TextFormattingRunProperties with the specified options.

public:
 static Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ CreateTextFormattingRunProperties(System::Windows::Media::Typeface ^ typeface, double size, System::Windows::Media::Color foreground);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)]
public static Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties CreateTextFormattingRunProperties (System.Windows.Media.Typeface typeface, double size, System.Windows.Media.Color foreground);
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)>]
static member CreateTextFormattingRunProperties : System.Windows.Media.Typeface * double * System.Windows.Media.Color -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Shared Function CreateTextFormattingRunProperties (typeface As Typeface, size As Double, foreground As Color) As TextFormattingRunProperties

Parameters

typeface
Typeface

The typeface of the text.

size
Double

The size of the text.

foreground
Color

The foreground color of the text.

Returns

A TextFormattingRunProperties that has the requested properties.

Attributes

Applies to

CreateTextFormattingRunProperties(Brush, Brush, Typeface, Nullable<Double>, Nullable<Double>, TextDecorationCollection, TextEffectCollection, CultureInfo)

Initializes a new instance of TextFormattingRunProperties with the specified options.

public:
 static Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ CreateTextFormattingRunProperties(System::Windows::Media::Brush ^ foreground, System::Windows::Media::Brush ^ background, System::Windows::Media::Typeface ^ typeface, Nullable<double> size, Nullable<double> hintingSize, System::Windows::TextDecorationCollection ^ textDecorations, System::Windows::Media::TextEffectCollection ^ textEffects, System::Globalization::CultureInfo ^ cultureInfo);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public static Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties CreateTextFormattingRunProperties (System.Windows.Media.Brush foreground, System.Windows.Media.Brush background, System.Windows.Media.Typeface typeface, double? size, double? hintingSize, System.Windows.TextDecorationCollection textDecorations, System.Windows.Media.TextEffectCollection textEffects, System.Globalization.CultureInfo cultureInfo);
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)>]
static member CreateTextFormattingRunProperties : System.Windows.Media.Brush * System.Windows.Media.Brush * System.Windows.Media.Typeface * Nullable<double> * Nullable<double> * System.Windows.TextDecorationCollection * System.Windows.Media.TextEffectCollection * System.Globalization.CultureInfo -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Shared Function CreateTextFormattingRunProperties (foreground As Brush, background As Brush, typeface As Typeface, size As Nullable(Of Double), hintingSize As Nullable(Of Double), textDecorations As TextDecorationCollection, textEffects As TextEffectCollection, cultureInfo As CultureInfo) As TextFormattingRunProperties

Parameters

foreground
Brush

The foreground brush of the text.

background
Brush

The background brush of the text.

typeface
Typeface

The typeface of the text.

size
Nullable<Double>

The size of the text.

hintingSize
Nullable<Double>

The hinting size of the text.

textDecorations
TextDecorationCollection

The text decorations on the text.

textEffects
TextEffectCollection

The text effects on the text.

cultureInfo
CultureInfo

The culture info.

Returns

A TextFormattingRunProperties object that has the requested properties.

Attributes

Applies to