Propriedade XmlMappedRange.Orientation

Obtém ou define um valor que especifica a orientação de texto.

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

Sintaxe

'Declaração
Property Orientation As Object
Object Orientation { get; set; }

Valor de propriedade

Tipo: System.Object
Um inteiro no intervalo de -90 a 90 graus que especifica a orientação de texto.

Exemplos

O exemplo de código a seguir usa a propriedade de Orientation para exibir texto vertical em XmlMappedRange.Este exemplo de código a seguir pressupõe que a planilha atual contiver XmlMappedRange chamado 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;
}

Segurança do .NET Framework

Consulte também

Referência

XmlMappedRange Interface

Namespace Microsoft.Office.Tools.Excel