Forums     Knowledge Base     OfficeWriter Online     
 
This documentation is for
OfficeWriter v3.0.4
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > ExcelApplication API > Style > Orientation

Orientation Property


C# Signature:

VB.NET Signature:


Description:

Sets or returns the angle that text is displayed at, as a value between -90 and 90.

Orientation is a read / write property.



Examples:

[csharp]
// Get Orientation
int orient = styl.Orientation;

// Set Orientation
styl.Orientation = 45;
[vbnet]
' Get Orientation
Dim orient As Integer = styl.Orientation

' Set Orientation
styl.Orientation = 45
[vbnet]


Getter

Signature:

public int Orientation

Returns:

int An integer in the range -90 <= degrees <= 90. +90 is straight up, -90 is straight down, and 0 is horizontal. Any values outside this range will be truncated to the minimum or maximum value (i.e., -200 will be set as -90).

Setter

Signature:

public void Orientation int degrees

Type:

int



Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.