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)
Syntax
声明
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
public static TextFormattingRunProperties CreateTextFormattingRunProperties(
Brush foreground,
Brush background,
Typeface typeface,
Nullable<double> size,
Nullable<double> hintingSize,
TextDecorationCollection textDecorations,
TextEffectCollection textEffects,
CultureInfo cultureInfo
)
public:
static TextFormattingRunProperties^ CreateTextFormattingRunProperties(
Brush^ foreground,
Brush^ background,
Typeface^ typeface,
Nullable<double> size,
Nullable<double> hintingSize,
TextDecorationCollection^ textDecorations,
TextEffectCollection^ textEffects,
CultureInfo^ cultureInfo
)
static member CreateTextFormattingRunProperties :
foreground:Brush *
background:Brush *
typeface:Typeface *
size:Nullable<float> *
hintingSize:Nullable<float> *
textDecorations:TextDecorationCollection *
textEffects:TextEffectCollection *
cultureInfo:CultureInfo -> TextFormattingRunProperties
public static function CreateTextFormattingRunProperties(
foreground : Brush,
background : Brush,
typeface : Typeface,
size : Nullable<double>,
hintingSize : Nullable<double>,
textDecorations : TextDecorationCollection,
textEffects : TextEffectCollection,
cultureInfo : CultureInfo
) : TextFormattingRunProperties
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TextFormattingRunProperties Class