TextFormattingRunProperties::CreateTextFormattingRunProperties Method (Brush^, Brush^, Typeface^, Nullable<Double>, Nullable<Double>, TextDecorationCollection^, TextEffectCollection^, CultureInfo^)

 

Initializes a new instance of TextFormattingRunProperties with the specified options.

Namespace:   Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

public:
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)]
static TextFormattingRunProperties^ CreateTextFormattingRunProperties(
	Brush^ foreground,
	Brush^ background,
	Typeface^ typeface,
	Nullable<double> size,
	Nullable<double> hintingSize,
	TextDecorationCollection^ textDecorations,
	TextEffectCollection^ textEffects,
	CultureInfo^ cultureInfo
)

Parameters

foreground
Type: System.Windows.Media::Brush^

The foreground brush of the text.

background
Type: System.Windows.Media::Brush^

The background brush of the text.

typeface
Type: System.Windows.Media::Typeface^

The typeface of the text.

size
Type: System::Nullable<Double>

The size of the text.

hintingSize
Type: System::Nullable<Double>

The hinting size of the text.

textDecorations
Type: System.Windows::TextDecorationCollection^

The text decorations on the text.

textEffects
Type: System.Windows.Media::TextEffectCollection^

The text effects on the text.

cultureInfo
Type: System.Globalization::CultureInfo^

The culture info.

Return Value

Type: Microsoft.VisualStudio.Text.Formatting::TextFormattingRunProperties^

A TextFormattingRunProperties object that has the requested properties.

Return to top
Show: