Condividi tramite


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

'Dichiarazione
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

Return Value

Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
A TextFormattingRunProperties object that has the requested properties.

.NET Framework Security

See Also

Reference

TextFormattingRunProperties Class

CreateTextFormattingRunProperties Overload

Microsoft.VisualStudio.Text.Formatting Namespace