Share via


Columns.PreferredWidth Property 

Returns or sets the preferred width (in points or as a percentage of the window width) for the specified columns.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim columns1 As Columns

Dim returnValue As Single
returnValue = columns1.PreferredWidth

Dim sampleValue As Single
columns1.PreferredWidth = sampleValue

Syntax

Property PreferredWidth() As Single
float PreferredWidth {get; set;}
property Single PreferredWidth{
    Single get();
    Void set(Single);
}
public float get_PreferredWidth();
public void set_PreferredWidth(float);
function get PreferredWidth() : float;
function set PreferredWidth(float);

Thread Safety

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

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Columns Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Columns Members