Freigeben über


DataGrid.CaptionFont-Eigenschaft

Ruft die Schriftart der Datenblattbeschriftung ab oder legt diese fest.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
<LocalizableAttribute(True)> _
Public Property CaptionFont As Font
'Usage
Dim instance As DataGrid
Dim value As Font

value = instance.CaptionFont

instance.CaptionFont = value
[LocalizableAttribute(true)] 
public Font CaptionFont { get; set; }
[LocalizableAttribute(true)] 
public:
property Font^ CaptionFont {
    Font^ get ();
    void set (Font^ value);
}
/** @property */
public Font get_CaptionFont ()

/** @property */
public void set_CaptionFont (Font value)
public function get CaptionFont () : Font

public function set CaptionFont (value : Font)

Eigenschaftenwert

Ein Font, der die Schriftart der Beschriftung darstellt.

Hinweise

Ein Font kapselt eine Windows-Schriftart und stellt Methoden zum Bearbeiten dieser Schriftart zur Verfügung.

Beispiel

Im folgenden Codebeispiel wird die Schriftart der Beschriftung mithilfe eines Font-Objekts festgelegt.

Private Sub SetCaptionFont(ByRef myGrid As DataGrid, newFont As System.Drawing.Font)
    myGrid.CaptionFont = newFont
 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
DataGrid.CaptionBackColor-Eigenschaft
CaptionForeColor