Aspose::Words::Drawing::ShadowFormat::Clear method
ShadowFormat::Clear method
Clears shadow format.
void Aspose::Words::Drawing::ShadowFormat::Clear()
Examples
Shows how to work with a shadow formatting for the shape.
auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Shape stroke pattern border.docx");
auto shape = System::ExplicitCast<Aspose::Words::Drawing::Shape>(doc->GetChildNodes(Aspose::Words::NodeType::Shape, true)->idx_get(0));
if (shape->get_ShadowFormat()->get_Visible() && shape->get_ShadowFormat()->get_Type() == Aspose::Words::Drawing::ShadowType::Shadow2)
{
shape->get_ShadowFormat()->set_Type(Aspose::Words::Drawing::ShadowType::Shadow7);
}
if (shape->get_ShadowFormat()->get_Type() == Aspose::Words::Drawing::ShadowType::ShadowMixed)
{
shape->get_ShadowFormat()->Clear();
}
See Also
- Class ShadowFormat
- Namespace Aspose::Words::Drawing
- Library Aspose.Words for C++