Bewerken

Delen via


Columns Interface

Definition

A collection of Column objects that represent the columns in a table.

public interface class Columns : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0002094B-0000-0000-C000-000000000046")]
public interface Columns : System.Collections.IEnumerable
type Columns = interface
    interface IEnumerable
Public Interface Columns
Implements IEnumerable
Attributes
Implements

Remarks

Use the Columns property to return the Columns collection.

Use the Add(Object) method to add a column to a table.

Use Columns(index), where index is the index number, to return a single Column object.

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.

Count

Returns the number of items in the specified collection.

Creator

Returns a value that indicates the application in which the specified object was created.

First

Returns a Column object that represents the first item in the Columns collection.

Item[Int32]

Returns an individual object in a collection.

Last

Returns a Column object that represents the last item in the Columns collection.

NestingLevel

Returns the nesting level of the specified columns.

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 columns.

PreferredWidthType

Returns or sets the preferred unit of measurement to use for the width of the specified columns.

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

Add(Object)

Adds a column to a table.

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.

DistributeWidth()

Adjusts the width of the specified columns so that they're equal.

GetEnumerator()
Select()

Selects the specified object.

SetWidth(Single, WdRulerStyle)

Sets the width of columns in a table.

Applies to