TextFormattingRunProperties.CreateTextFormattingRunProperties 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.
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.
- 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