Export (0) Print
Expand All

TableLayoutSettings Class

Collects the characteristics associated with table layouts.

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

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

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

The TableLayoutSettings type exposes the following members.

  NameDescription
Public propertyColumnCountGets or sets the maximum number of columns allowed in the table layout.
Public propertyColumnStylesGets the collection of styles used to determine the look and feel of the table layout columns.
Public propertyGrowStyleGets or sets a value indicating how the table layout should expand to accommodate new cells when all existing cells are occupied.
Public propertyLayoutEngineGets the current table layout engine. (Overrides LayoutSettings::LayoutEngine.)
Public propertyRowCountGets or sets the maximum number of rows allowed in the table layout.
Public propertyRowStylesGets the collection of styles used to determine the look and feel of the table layout rows.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetCellPositionGets the TableLayoutPanelCellPosition that represents the row and the column of the cell.
Public methodGetColumnGets the column position of the specified child control.
Public methodGetColumnSpanGets the number of columns that the cell containing the child control spans.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetRowGets the row position of the specified child control.
Public methodGetRowSpanGets the number of rows that the cell containing the child control spans.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSetCellPositionSets the TableLayoutPanelCellPosition that represents the row and the column of the cell.
Public methodSetColumnSets the column position for the specified child control.
Public methodSetColumnSpanSets the number of columns that the cell containing the child control spans.
Public methodSetRowSets the row position of the specified child control.
Public methodSetRowSpanSets the number of rows that the cell containing the child control spans.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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