TextFormattingRunProperties.SetForeground(Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a new TextFormattingRunProperties with the properties of this one but
with the foreground set to foreground
.
public:
Microsoft::VisualStudio::Text::Formatting::TextFormattingRunProperties ^ SetForeground(System::Windows::Media::Color foreground);
public Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties SetForeground (System.Windows.Media.Color foreground);
member this.SetForeground : System.Windows.Media.Color -> Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
Public Function SetForeground (foreground As Color) As TextFormattingRunProperties
Parameters
- foreground
- Color
The new foreground color.
Returns
The TextFormattingRunProperties.
Remarks
The foreground brush is changed by this method.