Rotation

ShapeBase.Rotation property

Bir şeklin döndürüleceği açıyı (derece olarak) tanımlar. Pozitif değer saat yönünde dönüş açısına karşılık gelir.

public double Rotation { get; set; }

Notlar

Varsayılan değer 0’dır.

Örnekler

Bir resmin nasıl ekleneceğini ve döndürüleceğini gösterir.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Resimli bir şekil ekle.
Shape shape = builder.InsertImage(ImageDir + "Logo.jpg");
Assert.True(shape.CanHaveImage);
Assert.True(shape.HasImage);

// Görüntüyü saat yönünde 45 derece döndür.
shape.Rotation = 45;

doc.Save(ArtifactsDir + "Shape.Rotate.docx");

Ayrıca bakınız