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>(System::String(get_MyDir() + u"Shape stroke pattern border.docx"));
auto shape = System::ExplicitCast<Aspose::Words::Drawing::Shape>(doc->GetChildNodes(NodeType::Shape, true)->idx_get(0));

if (shape->get_ShadowFormat()->get_Visible() && shape->get_ShadowFormat()->get_Type() == ShadowType::Shadow2)
{
    shape->get_ShadowFormat()->set_Type(ShadowType::Shadow7);
}

if (shape->get_ShadowFormat()->get_Type() == ShadowType::ShadowMixed)
{
    shape->get_ShadowFormat()->Clear();
}

See Also