Table of Contents

Class Grid

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Grid : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, Orientable, IHandle, GTypeProvider
Inheritance
Grid
Implements
Inherited Members

Constructors

Grid()

public Grid()

Grid(params ConstructArgument[])

protected Grid(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Grid(IntPtr, bool)

protected Grid(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

BaselineRowPropertyDefinition

public static readonly Property<int, Grid> BaselineRowPropertyDefinition

Field Value

Property<int, Grid>

ColumnHomogeneousPropertyDefinition

public static readonly Property<bool, Grid> ColumnHomogeneousPropertyDefinition

Field Value

Property<bool, Grid>

ColumnSpacingPropertyDefinition

public static readonly Property<int, Grid> ColumnSpacingPropertyDefinition

Field Value

Property<int, Grid>

RowHomogeneousPropertyDefinition

public static readonly Property<bool, Grid> RowHomogeneousPropertyDefinition

Field Value

Property<bool, Grid>

RowSpacingPropertyDefinition

public static readonly Property<int, Grid> RowSpacingPropertyDefinition

Field Value

Property<int, Grid>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

BaselineRow

public int BaselineRow { get; set; }

Property Value

int

ColumnHomogeneous

public bool ColumnHomogeneous { get; set; }

Property Value

bool

ColumnSpacing

public int ColumnSpacing { get; set; }

Property Value

int

RowHomogeneous

public bool RowHomogeneous { get; set; }

Property Value

bool

RowSpacing

public int RowSpacing { get; set; }

Property Value

int

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

Attach(Widget, int, int, int, int)

public void Attach(Widget child, int column, int row, int width, int height)

Parameters

child Widget
column int
row int
width int
height int

AttachNextTo(Widget, Widget?, PositionType, int, int)

public void AttachNextTo(Widget child, Widget? sibling, PositionType side, int width, int height)

Parameters

child Widget
sibling Widget
side PositionType
width int
height int

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBaselineRow()

public int GetBaselineRow()

Returns

int

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetChildAt(int, int)

public Widget? GetChildAt(int column, int row)

Parameters

column int
row int

Returns

Widget

GetColumnHomogeneous()

public bool GetColumnHomogeneous()

Returns

bool

GetColumnSpacing()

public uint GetColumnSpacing()

Returns

uint

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetOrientation()

public Orientation GetOrientation()

Returns

Orientation

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetRowBaselinePosition(int)

public BaselinePosition GetRowBaselinePosition(int row)

Parameters

row int

Returns

BaselinePosition

GetRowHomogeneous()

public bool GetRowHomogeneous()

Returns

bool

GetRowSpacing()

public uint GetRowSpacing()

Returns

uint

InsertColumn(int)

public void InsertColumn(int position)

Parameters

position int

InsertNextTo(Widget, PositionType)

public void InsertNextTo(Widget sibling, PositionType side)

Parameters

sibling Widget
side PositionType

InsertRow(int)

public void InsertRow(int position)

Parameters

position int

New()

public static Grid New()

Returns

Grid

QueryChild(Widget, out int, out int, out int, out int)

public void QueryChild(Widget child, out int column, out int row, out int width, out int height)

Parameters

child Widget
column int
row int
width int
height int

Remove(Widget)

public void Remove(Widget child)

Parameters

child Widget

RemoveColumn(int)

public void RemoveColumn(int position)

Parameters

position int

RemoveRow(int)

public void RemoveRow(int position)

Parameters

position int

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetBaselineRow(int)

public void SetBaselineRow(int row)

Parameters

row int

SetColumnHomogeneous(bool)

public void SetColumnHomogeneous(bool homogeneous)

Parameters

homogeneous bool

SetColumnSpacing(uint)

public void SetColumnSpacing(uint spacing)

Parameters

spacing uint

SetOrientation(Orientation)

public void SetOrientation(Orientation orientation)

Parameters

orientation Orientation

SetRowBaselinePosition(int, BaselinePosition)

public void SetRowBaselinePosition(int row, BaselinePosition pos)

Parameters

row int
pos BaselinePosition

SetRowHomogeneous(bool)

public void SetRowHomogeneous(bool homogeneous)

Parameters

homogeneous bool

SetRowSpacing(uint)

public void SetRowSpacing(uint spacing)

Parameters

spacing uint

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible