Megosztás a következőn keresztül:


XmlMappedRange.Orientation Property

Gets or sets a value that specifies the text orientation.

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

Syntax

'Declaration
Property Orientation As Object
Object Orientation { get; set; }

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 Interface

Microsoft.Office.Tools.Excel Namespace