DataGridColumnStyle.GetMinimumHeight 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.
When overridden in a derived class, gets the minimum height of a row.
protected public:
abstract int GetMinimumHeight();
protected internal abstract int GetMinimumHeight ();
abstract member GetMinimumHeight : unit -> int
Protected Friend MustOverride Function GetMinimumHeight () As Integer
Returns
The minimum height of a row.
Examples
The following code example gets the minimum height of the column.
public ref class MyGridColumn: public DataGridBoolColumn
{
public:
int GetMinHeight()
{
return this->GetMinimumHeight();
}
};
public ref class Form1: public Form
{
protected:
DataGrid^ dataGrid1;
private:
void GetHeight()
{
MyGridColumn^ myGridColumn = dynamic_cast<MyGridColumn^>(dataGrid1->TableStyles[ 1 ]->GridColumnStyles[ 0 ]);
Console::WriteLine( myGridColumn->GetMinHeight() );
}
};
public class Form1: Form
{
protected DataGrid dataGrid1;
private void GetHeight(){
MyGridColumn myGridColumn = (MyGridColumn)dataGrid1.TableStyles[1].GridColumnStyles[0];
Console.WriteLine(myGridColumn.GetMinHeight());
}
}
public class MyGridColumn:DataGridBoolColumn{
public int GetMinHeight(){
return this.GetMinimumHeight();
}
}
Public Class Form1
Inherits Form
Protected dataGrid1 As DataGrid
Private Sub GetHeight()
Dim myGridColumn As MyGridColumn = _
CType(dataGrid1.TableStyles(1).GridColumnStyles(0), _
MyGridColumn)
Console.WriteLine(myGridColumn.GetMinHeight())
End Sub
End Class
Public Class MyGridColumn
Inherits DataGridBoolColumn
Public Function GetMinHeight() As Integer
return me.GetMinimumHeight()
End Function
End Class
Applies to
See also
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: