Class GridLayout
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class GridLayout : LayoutManager, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
GridLayout
- Implements
- Inherited Members
Constructors
GridLayout(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public GridLayout(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
GridLayout(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected GridLayout(CreationData data)
Parameters
dataCreationData
GridLayout(GridLayoutHandle)
protected GridLayout(GridLayoutHandle handle)
Parameters
handleGridLayoutHandle
Fields
BaselineRowPropertyDefinition
public static readonly Property<int, GridLayout> BaselineRowPropertyDefinition
Field Value
ColumnHomogeneousPropertyDefinition
public static readonly Property<bool, GridLayout> ColumnHomogeneousPropertyDefinition
Field Value
ColumnSpacingPropertyDefinition
public static readonly Property<int, GridLayout> ColumnSpacingPropertyDefinition
Field Value
RowHomogeneousPropertyDefinition
public static readonly Property<bool, GridLayout> RowHomogeneousPropertyDefinition
Field Value
RowSpacingPropertyDefinition
public static readonly Property<int, GridLayout> RowSpacingPropertyDefinition
Field Value
Properties
BaselineRow
public int BaselineRow { get; set; }
Property Value
ColumnHomogeneous
public bool ColumnHomogeneous { get; set; }
Property Value
ColumnSpacing
public int ColumnSpacing { get; set; }
Property Value
RowHomogeneous
public bool RowHomogeneous { get; set; }
Property Value
RowSpacing
public int RowSpacing { get; set; }
Property Value
Methods
GetBaselineRow()
public int GetBaselineRow()
Returns
GetColumnHomogeneous()
public bool GetColumnHomogeneous()
Returns
GetColumnSpacing()
public uint GetColumnSpacing()
Returns
GetGType()
public static Type GetGType()
Returns
GetRowBaselinePosition(int)
public BaselinePosition GetRowBaselinePosition(int row)
Parameters
rowint
Returns
GetRowHomogeneous()
public bool GetRowHomogeneous()
Returns
GetRowSpacing()
public uint GetRowSpacing()
Returns
New()
public static GridLayout New()
Returns
NewFromPointer(nint, bool)
Creates a new managed GridLayout instance for a given pointer.
public static GridLayout NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new GridLayout and sets the properties specified by the construct arguments.
public static GridLayout NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetBaselineRow(int)
public void SetBaselineRow(int row)
Parameters
rowint
SetColumnHomogeneous(bool)
public void SetColumnHomogeneous(bool homogeneous)
Parameters
homogeneousbool
SetColumnSpacing(uint)
public void SetColumnSpacing(uint spacing)
Parameters
spacinguint
SetRowBaselinePosition(int, BaselinePosition)
public void SetRowBaselinePosition(int row, BaselinePosition pos)
Parameters
rowintposBaselinePosition
SetRowHomogeneous(bool)
public void SetRowHomogeneous(bool homogeneous)
Parameters
homogeneousbool
SetRowSpacing(uint)
public void SetRowSpacing(uint spacing)
Parameters
spacinguint