Column Interface
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.
Represents a single table column. The Column object is a member of the Columns collection.
public interface class Column
[System.Runtime.InteropServices.Guid("0002094F-0000-0000-C000-000000000046")]
public interface Column
type Column = interface
Public Interface Column
- Attributes
Remarks
The Columns collection includes all the columns in a table, selection, or range.
Use Columns(index
), where index
is the index number, to return a single Column object. The index number represents the position of the column in the Columns collection (counting from left to right).
Use the Column property with a Cell object to return a Column object.
Use the Add(Object) method to add a column to a table.
Use the Information[WdInformation] property with a Selection object to return the current column number.
Properties
Application |
Returns a Application object that represents the creator of the specified object. |
Borders |
Returns or sets a Borders collection that represents all the borders for the specified object. |
Cells |
Returns a Cells collection that represents the table cells in a column. |
Creator |
Returns a value that indicates the application in which the specified object was created. |
Index |
Returns a value that represents the position of an item in a collection. |
IsFirst |
Returns a value that indicates if the specified column is the first one in the table. |
IsLast |
Returns a value that indicates if the specified column is the last one in the table. |
NestingLevel |
Returns the nesting level of the specified column. |
Next |
Returns the next object in the collection. |
Parent |
Returns the parent object of the specified object. |
PreferredWidth |
Returns or sets the preferred width (in points or as a percentage of the window width) for the specified column. |
PreferredWidthType |
Returns or sets the preferred unit of measurement to use for the width of the specified column. |
Previous |
Returns the previous object in the collection. |
Shading |
Returns a Shading object that refers to the shading formatting for the specified object. |
Width |
Returns or sets the width of the specified object in points. |
Methods
AutoFit() |
Changes the width of a table column to accommodate the width of the text without changing the way text wraps in the cells. |
Delete() |
Deletes the specified object. |
Select() |
Selects the specified object. |
SetWidth(Single, WdRulerStyle) |
Sets the width of a column in a table. |
Sort(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Sorts the specified table column. |
SortOld(Object, Object, Object, Object, Object) |
Reserved for internal use. |