Condividi tramite


XmlMappedRange.Orientation Property

Definition

Gets or sets a value that specifies the text orientation.

public:
 property System::Object ^ Orientation { System::Object ^ get(); void set(System::Object ^ value); };
public object Orientation { get; set; }
member this.Orientation : obj with get, set
Public Property Orientation As Object

Property Value

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 void DisplayVerticalText()
{
    this.CustomerLastNameCell.Value2 = "This text is vertical.";
    this.CustomerLastNameCell.Orientation = -90;
}
Private Sub DisplayVerticalText()
    Me.CustomerLastNameCell.Value2 = "This text is vertical."
    Me.CustomerLastNameCell.Orientation = -90
End Sub

Applies to