Remove
Contents
[
Hide
]SoftEdgeFormat.Remove method
Removes SoftEdgeFormat
from the parent object.
public void Remove()
Examples
Shows how to set limit for image resolution.
Document doc = new Document(MyDir + "Rendering.docx");
SvgSaveOptions saveOptions = new SvgSaveOptions();
saveOptions.MaxImageResolution = 72;
doc.Save(ArtifactsDir + "SvgSaveOptions.MaxImageResolution.svg", saveOptions);
Shows how to work with soft edge formatting.
DocumentBuilder builder = new DocumentBuilder();
Shape shape = builder.InsertShape(ShapeType.Rectangle, 200, 200);
// Apply soft edge to the shape.
shape.SoftEdge.Radius = 30;
builder.Document.Save(ArtifactsDir + "Shape.SoftEdge.docx");
// Load document with rectangle shape with soft edge.
Document doc = new Document(ArtifactsDir + "Shape.SoftEdge.docx");
shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
SoftEdgeFormat softEdgeFormat = shape.SoftEdge;
// Check soft edge radius.
Assert.AreEqual(30, softEdgeFormat.Radius);
// Remove soft edge from the shape.
softEdgeFormat.Remove();
// Check radius of the removed soft edge.
Assert.AreEqual(0, softEdgeFormat.Radius);
See Also
- class SoftEdgeFormat
- namespace Aspose.Words.Drawing
- assembly Aspose.Words