rotation property

int get rotation

The text rotation angle, in degrees.

Implementation

int get rotation {
  return _rotation;
}
set rotation (int rotate)

Rotation varies from 90 to -90. Negative values are stored as absolute value + 90 per the OOXML spec.

Implementation

set rotation(int rotate) {
  if (rotate > 90 || rotate < -90) {
    rotate = 0;
  }
  if (rotate < 0) {
    rotate = -(rotate) + 90;
  }
  _rotation = rotate;
}