편집

다음을 통해 공유


DataGridTextColumn.Foreground Property

Definition

Gets or sets the Brush that is used to paint the text contents of cells in the column.

public:
 property System::Windows::Media::Brush ^ Foreground { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush Foreground { get; set; }
member this.Foreground : System.Windows.Media.Brush with get, set
Public Property Foreground As Brush

Property Value

The brush that is used to paint the contents of cells in the column. The registered default is ControlTextBrush. For information about what can influence the value, see DependencyProperty.

Remarks

The Foreground property determines the brush for the text contents of controls in the column only when the template uses the property as a parameter.

Applies to