NamedRange::VerticalAlignment Property

 

Gets or sets the vertical alignment of the NamedRange control.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

property Object^ VerticalAlignment {
	Object^ get();
	void set(Object^ value);
}

Property Value

Type: System::Object^

One of the XlVAlign values.

Some of the XlVAlign values might not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed.

The following code example demonstrates how to set a variety of formatting and display characteristics of a NamedRange control named NamedRange1. In particular, this example sets the VerticalAlignment property to xlVAlignCenter so that the contents of the range are centered vertically within the bounds of each cell.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: