Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft die Breite von Zeilenköpfen ab oder legt diese fest.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Syntax
'Declaration
Public Property RowHeaderWidth As Integer
'Usage
Dim instance As DataGrid
Dim value As Integer
value = instance.RowHeaderWidth
instance.RowHeaderWidth = value
public int RowHeaderWidth { get; set; }
public:
property int RowHeaderWidth {
int get ();
void set (int value);
}
/** @property */
public int get_RowHeaderWidth ()
/** @property */
public void set_RowHeaderWidth (int value)
public function get RowHeaderWidth () : int
public function set RowHeaderWidth (value : int)
Eigenschaftenwert
Die Breite der Spaltenköpfe im System.Windows.Forms.DataGrid. Der Standardwert ist 35.
Beispiel
' Get the width of row header.
Private Sub button9_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button9.Click
Dim myRowHeaderWidth As Int32 = myDataGrid.RowHeaderWidth
MessageBox.Show("Width of row headers is: " + myRowHeaderWidth.ToString(), "Message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
End Sub 'button9_Click
// Get the width of row header.
private void button9_Click(object sender, EventArgs e)
{
Int32 myRowHeaderWidth = myDataGrid.RowHeaderWidth;
MessageBox.Show("Width of row headers is: "+
myRowHeaderWidth.ToString(), "Message",
MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
}
// Get the width of row header.
private:
void button9_Click( Object^ /*sender*/, EventArgs^ /*e*/ )
{
Int32 myRowHeaderWidth = myDataGrid->RowHeaderWidth;
MessageBox::Show( String::Concat( "Width of row headers is: ", myRowHeaderWidth ), "Message", MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
}
// Get the width of row header.
private void button9_Click(Object sender, EventArgs e)
{
Int32 myRowHeaderWidth = (Int32)myDataGrid.get_RowHeaderWidth();
MessageBox.Show("Width of row headers is: "
+ myRowHeaderWidth.ToString(), "Message",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
} //button9_Click
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