Метод Aspose::Words::Drawing::ShadowFormat::get_Visible

ShadowFormat::get_Visible method

Возвращает true, если форматирование, применённое к этому экземпляру, видно.

bool Aspose::Words::Drawing::ShadowFormat::get_Visible()

Примеры

Показывает, как работать с форматированием тени для фигуры.

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();
}

См. также