TextFormattingRunProperties.CreateTextFormattingRunProperties Method (Typeface, Double, Color)
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 ( _
typeface As Typeface, _
size As Double, _
foreground As Color _
) As TextFormattingRunProperties
public static TextFormattingRunProperties CreateTextFormattingRunProperties(
Typeface typeface,
double size,
Color foreground
)
public:
static TextFormattingRunProperties^ CreateTextFormattingRunProperties(
Typeface^ typeface,
double size,
Color foreground
)
static member CreateTextFormattingRunProperties :
typeface:Typeface *
size:float *
foreground:Color -> TextFormattingRunProperties
public static function CreateTextFormattingRunProperties(
typeface : Typeface,
size : double,
foreground : Color
) : TextFormattingRunProperties
Parameters
typeface
Type: System.Windows.Media.TypefaceThe typeface of the text.
size
Type: System.DoubleThe size of the text.
foreground
Type: System.Windows.Media.ColorThe foreground color of the text.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
A TextFormattingRunProperties 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