Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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: BrushThe foreground brush of the text.
background
Type: BrushThe background brush of the text.
typeface
Type: TypefaceThe 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: TextDecorationCollectionThe text decorations on the text.
textEffects
Type: TextEffectCollectionThe text effects on the text.
cultureInfo
Type: CultureInfoThe 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