DataGrid.CaptionBackColor-Eigenschaft
Ruft die Hintergrundfarbe des Beschriftungsbereichs ab oder legt diese fest.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Syntax
'Declaration
Public Property CaptionBackColor As Color
'Usage
Dim instance As DataGrid
Dim value As Color
value = instance.CaptionBackColor
instance.CaptionBackColor = value
public Color CaptionBackColor { get; set; }
public:
property Color CaptionBackColor {
Color get ();
void set (Color value);
}
/** @property */
public Color get_CaptionBackColor ()
/** @property */
public void set_CaptionBackColor (Color value)
public function get CaptionBackColor () : Color
public function set CaptionBackColor (value : Color)
Eigenschaftenwert
Eine Color, die die Hintergrundfarbe der Beschriftung darstellt. Die Standardfarbe ist die ActiveCaption-Farbe.
Beispiel
Im folgenden Codebeispiel wird die CaptionBackColor-Eigenschaft des System.Windows.Forms.DataGrid-Steuerelements festgelegt.
Private Sub SetCaptionBackClr(ByVal myGrid As DataGrid)
myGrid.CaptionBackColor = System.Drawing.Color.Blue
End Sub
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
DataGrid-Klasse
DataGrid-Member
System.Windows.Forms-Namespace
CaptionForeColor
CaptionFont