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)
声明
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
- typeface
Type: System.Windows.Media.Typeface
The typeface of the text.
- size
Type: System.Double
The size of the text.
- foreground
Type: System.Windows.Media.Color
The foreground color of the text.
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
A TextFormattingRunProperties that has the requested properties.
- 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.
TextFormattingRunProperties Class