NamedRange.Orientation, propriété (System 2007)
Mise à jour : novembre 2007
Obtient ou définit l'orientation de texte.
Espace de noms : Microsoft.Office.Tools.Excel
Assembly : Microsoft.Office.Tools.Excel.v9.0 (dans Microsoft.Office.Tools.Excel.v9.0.dll)
Syntaxe
<BrowsableAttribute(False)> _
Public Property Orientation As Object
Dim instance As NamedRange
Dim value As Object
value = instance.Orientation
instance.Orientation = value
[BrowsableAttribute(false)]
public Object Orientation { get; set; }
Valeur de propriété
Type : System.Object
Valeur entière comprise entre -90 et 90 degrés.
Exemples
L'exemple de code suivant crée un NamedRange, puis utilise la propriété Orientation pour afficher le texte vertical dans NamedRange.
Cet exemple illustre une personnalisation au niveau du document.
Private orientationRange As Microsoft.Office.Tools.Excel.NamedRange
Private Sub DisplayVerticalText()
orientationRange = Me.Controls.AddNamedRange( _
Me.Range("C4"), "orientationRange")
Me.orientationRange.Value2 = "This text is vertical."
Me.orientationRange.Orientation = -90
End Sub
Microsoft.Office.Tools.Excel.NamedRange orientationRange;
private void DisplayVerticalText()
{
orientationRange = this.Controls.AddNamedRange(
this.Range["C4", missing], "orientationRange");
this.orientationRange.Value2 = "This text is vertical.";
this.orientationRange.Orientation = -90;
}
Autorisations
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.