Distance
Contenuti
[
Nascondere
]ReflectionFormat.Distance property
Ottiene o imposta un valore double che specifica la quantità di separazione dell’immagine riflessa dall’oggetto in punti. Il valore predefinito è 0.0.
public double Distance { get; set; }
Esempi
Mostra come interagire con l’effetto forma riflesso.
Document doc = new Document(MyDir + "Various shapes.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
shape.Reflection.Transparency = 0.37;
shape.Reflection.Size = 0.48;
shape.Reflection.Blur = 17.5;
shape.Reflection.Distance = 9.2;
doc.Save(ArtifactsDir + "Shape.Reflection.docx");
doc = new Document(ArtifactsDir + "Shape.Reflection.docx");
shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
ReflectionFormat reflectionFormat = shape.Reflection;
Assert.AreEqual(0.37d, reflectionFormat.Transparency, 0.01d);
Assert.AreEqual(0.48d, reflectionFormat.Size, 0.01d);
Assert.AreEqual(17.5d, reflectionFormat.Blur, 0.01d);
Assert.AreEqual(9.2d, reflectionFormat.Distance, 0.01d);
reflectionFormat.Remove();
Assert.AreEqual(0, reflectionFormat.Transparency);
Assert.AreEqual(0, reflectionFormat.Size);
Assert.AreEqual(0, reflectionFormat.Blur);
Assert.AreEqual(0, reflectionFormat.Distance);
Guarda anche
- class ReflectionFormat
- spazio dei nomi Aspose.Words.Drawing
- assemblea Aspose.Words