[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFillFormat.RotateWithObject

RotateWithObject Property

RotateWithObject

Gets or sets whether the fill style should rotate with the object.

This property indicates whether the current fill style follows the object's rotation.

Declaration
bool RotateWithObject { get; set; }
Property RotateWithObject As Boolean
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.TwoColorGradient(GradientStyle.Horizontal, 1);
fillFormat.RotateWithObject = false;
bool rotateWithObject = fillFormat.RotateWithObject;