Поделиться через


TextFormattingRunProperties.CreateTextFormattingRunProperties - метод (Brush, Brush, Typeface, Nullable<Double>, Nullable<Double>, TextDecorationCollection, TextEffectCollection, CultureInfo)

Инициализирует новый экземпляр TextFormattingRunProperties с указанными параметрами.

Пространство имен:  Microsoft.VisualStudio.Text.Formatting
Сборка:  Microsoft.VisualStudio.Text.UI.Wpf (в Microsoft.VisualStudio.Text.UI.Wpf.dll)

Синтаксис

'Декларация
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

Параметры

  • foreground
    Тип: Brush

    Кисть переднего плана текста.

  • background
    Тип: Brush

    Кисть фона текста.

  • typeface
    Тип: Typeface

    Шрифт текста.

  • size
    Тип: Nullable<Double>

    Размер текста.

  • hintingSize
    Тип: Nullable<Double>

    Размер хинтинга текста.

  • textDecorations
    Тип: TextDecorationCollection

    Оформление текста.

  • textEffects
    Тип: TextEffectCollection

    Текстовые эффекты.

  • cultureInfo
    Тип: CultureInfo

    Сведения о языке и региональных параметрах.

Возвращаемое значение

Тип: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
A TextFormattingRunProperties объект, являющийся владельцем свойства.

Безопасность платформы .NET Framework

См. также

Ссылки

TextFormattingRunProperties Класс

CreateTextFormattingRunProperties - перегрузка

Microsoft.VisualStudio.Text.Formatting - пространство имен