Udostępnij za pośrednictwem


XmlMappedRange.Orientation Property (2007 System)

Gets or sets a value that specifies the text orientation.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property Orientation As Object
'Usage
Dim instance As XmlMappedRange 
Dim value As Object 

value = instance.Orientation

instance.Orientation = value
[BrowsableAttribute(false)]
public Object Orientation { get; set; }
[BrowsableAttribute(false)]
public:
property Object^ Orientation {
    Object^ get ();
    void set (Object^ value);
}
public function get Orientation () : Object 
public function set Orientation (value : Object)

Property Value

Type: System.Object
An integer in the range of -90 to 90 degrees that specifies the text orientation.

Examples

The following code example uses the Orientation property to display vertical text in an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub DisplayVerticalText()
    Me.CustomerLastNameCell.Value2 = "This text is vertical." 
    Me.CustomerLastNameCell.Orientation = -90
End Sub
private void DisplayVerticalText()
{
    this.CustomerLastNameCell.Value2 = "This text is vertical.";
    this.CustomerLastNameCell.Orientation = -90;
}

.NET Framework Security

See Also

Reference

XmlMappedRange Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace