java.lang.Object
com.aspose.words.ShadowFormat
public class ShadowFormat
To learn more, visit the Working with Graphic Elements documentation article.
| Property Getters/Setters Summary | ||
|---|---|---|
java.awt.Color | getColor() | |
|
Gets a |
||
int | getType() | |
void | setType(int value) | |
|
Gets or sets the specified |
||
boolean | getVisible() | |
Returns true if the formatting applied to this instance is visible.
|
||
| Method Summary | ||
|---|---|---|
void | clear() | |
| Clears shadow format. | ||
| Property Getters/Setters Detail |
|---|
getColor | |
public java.awt.Color getColor() | |
Example:
Shows how to get shadow color.Document doc = new Document(getMyDir() + "Shadow color.docx"); Shape shape = (Shape)doc.getChild(NodeType.SHAPE, 0, true); Assert.assertEquals(Color.RED.getRGB(), shape.getShadowFormat().getColor().getRGB());
getType/setType | |
public int getType() / public void setType(int value) | |
getVisible | |
public boolean getVisible() | |
true if the formatting applied to this instance is visible.
false to Visible does not clear the formatting,
it only hides the shape effect.
Example:
Shows how to work with a shadow formatting for the shape.
Document doc = new Document(getMyDir() + "Shape stroke pattern border.docx");
Shape shape = (Shape)doc.getChildNodes(NodeType.SHAPE, true).get(0);
if (shape.getShadowFormat().getVisible() && shape.getShadowFormat().getType() == ShadowType.SHADOW_2)
shape.getShadowFormat().setType(ShadowType.SHADOW_7);
if (shape.getShadowFormat().getType() == ShadowType.SHADOW_MIXED)
shape.getShadowFormat().clear();| Method Detail |
|---|
clear | |
public void clear() | |
Example:
Shows how to work with a shadow formatting for the shape.
Document doc = new Document(getMyDir() + "Shape stroke pattern border.docx");
Shape shape = (Shape)doc.getChildNodes(NodeType.SHAPE, true).get(0);
if (shape.getShadowFormat().getVisible() && shape.getShadowFormat().getType() == ShadowType.SHADOW_2)
shape.getShadowFormat().setType(ShadowType.SHADOW_7);
if (shape.getShadowFormat().getType() == ShadowType.SHADOW_MIXED)
shape.getShadowFormat().clear();