Remove
Inhalt
[
Ausblenden
]SoftEdgeFormat.Remove method
EntferntSoftEdgeFormat
vom übergeordneten Objekt.
public void Remove()
Beispiele
Zeigt, wie die Grenze für die Bildauflösung festgelegt wird.
Document doc = new Document(MyDir + "Rendering.docx");
SvgSaveOptions saveOptions = new SvgSaveOptions();
saveOptions.MaxImageResolution = 72;
doc.Save(ArtifactsDir + "SvgSaveOptions.MaxImageResolution.svg", saveOptions);
Zeigt, wie mit Soft-Edge-Formatierung gearbeitet wird.
DocumentBuilder builder = new DocumentBuilder();
Shape shape = builder.InsertShape(ShapeType.Rectangle, 200, 200);
// Weiche Kante auf die Form anwenden.
shape.SoftEdge.Radius = 30;
builder.Document.Save(ArtifactsDir + "Shape.SoftEdge.docx");
// Dokument mit rechteckiger Form und weicher Kante laden.
Document doc = new Document(ArtifactsDir + "Shape.SoftEdge.docx");
shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
SoftEdgeFormat softEdgeFormat = shape.SoftEdge;
// Überprüfen Sie den Radius der weichen Kante.
Assert.AreEqual(30, softEdgeFormat.Radius);
// Weiche Kante aus der Form entfernen.
softEdgeFormat.Remove();
// Radius der entfernten weichen Kante prüfen.
Assert.AreEqual(0, softEdgeFormat.Radius);
Siehe auch
- class SoftEdgeFormat
- namensraum Aspose.Words.Drawing
- Montage Aspose.Words