TableLayoutSettings Class
TOC
Collapse the table of content
Expand the table of content

TableLayoutSettings Class

 

Collects the characteristics associated with table layouts.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System::Object
  System.Windows.Forms::LayoutSettings
    System.Windows.Forms::TableLayoutSettings

[SerializableAttribute]
[TypeConverterAttribute((TableLayoutSettingsTypeConverter^::typeid))]
public ref class TableLayoutSettings sealed : LayoutSettings, 
	ISerializable

NameDescription
System_CAPS_pubpropertyColumnCount

Gets or sets the maximum number of columns allowed in the table layout.

System_CAPS_pubpropertyColumnStyles

Gets the collection of styles used to determine the look and feel of the table layout columns.

System_CAPS_pubpropertyGrowStyle

Gets or sets a value indicating how the table layout should expand to accommodate new cells when all existing cells are occupied.

System_CAPS_pubpropertyLayoutEngine

Gets the current table layout engine.(Overrides LayoutSettings::LayoutEngine.)

System_CAPS_pubpropertyRowCount

Gets or sets the maximum number of rows allowed in the table layout.

System_CAPS_pubpropertyRowStyles

Gets the collection of styles used to determine the look and feel of the table layout rows.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetCellPosition(Object^)

Gets the TableLayoutPanelCellPosition that represents the row and the column of the cell.

System_CAPS_pubmethodGetColumn(Object^)

Gets the column position of the specified child control.

System_CAPS_pubmethodGetColumnSpan(Object^)

Gets the number of columns that the cell containing the child control spans.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetRow(Object^)

Gets the row position of the specified child control.

System_CAPS_pubmethodGetRowSpan(Object^)

Gets the number of rows that the cell containing the child control spans.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSetCellPosition(Object^, TableLayoutPanelCellPosition)

Sets the TableLayoutPanelCellPosition that represents the row and the column of the cell.

System_CAPS_pubmethodSetColumn(Object^, Int32)

Sets the column position for the specified child control.

System_CAPS_pubmethodSetColumnSpan(Object^, Int32)

Sets the number of columns that the cell containing the child control spans.

System_CAPS_pubmethodSetRow(Object^, Int32)

Sets the row position of the specified child control.

System_CAPS_pubmethodSetRowSpan(Object^, Int32)

Sets the number of rows that the cell containing the child control spans.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The TableLayoutSettings class collects and manages the characteristics associated with the table layout scheme. This class is used internally by the TableLayoutPanel and ToolStrip classes, as well as the table layout engine. The TableLayoutSettings class is used by the layout engine to determine how to lay out the container's child controls.

The TableLayoutSettings class manages the following information:

  • The TableLayoutPanelGrowStyle being used.

  • The maximum number of columns and rows in the layout.

  • The collection of styles used for the contained columns and rows.

The following example shows how to initialize a TableLayoutSettings object for a TableLayoutPanel control. For a full code listing, see How to: Implement a Custom ToolStripRenderer.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft