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 Класс