NamedRange::Left Property

 

Gets the distance from the left edge of column A to the left edge of the NamedRange control.

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

property Object^ Left {
	Object^ get();
}

Property Value

Type: System::Object^

The distance from the left edge of column A to the left edge of the NamedRange control.

If the range is more than one column wide, the leftmost column in the range is used.

If the window is maximized, Left returns a negative number that varies based on the width of the window border. Setting Left to 0 (zero) will make the window a tiny bit smaller than it would be if the application window were maximized. In other words, if Left is 0 (zero), the left border of the main Microsoft Office Excel window will just barely be visible on the screen.

The following code example creates a NamedRange control. It then uses the Left and Top properties to display the distance from the left edge of column A to the left edge of the NamedRange, and the distance from the top of row 1 to the top edge of the NamedRange.

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: