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

'Declaration
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: Brush

    The foreground brush of the text.

  • background
    Type: Brush

    The background brush of the text.

  • typeface
    Type: Typeface

    The typeface of the text.

  • size
    Type: Nullable<Double>

    The size of the text.

  • hintingSize
    Type: Nullable<Double>

    The hinting size of the text.

  • textDecorations
    Type: TextDecorationCollection

    The text decorations on the text.

  • textEffects
    Type: TextEffectCollection

    The text effects on the text.

  • cultureInfo
    Type: CultureInfo

    The culture info.

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