XmlMappedRange.Orientation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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