Aspose::Words::Drawing::ShapeBase::get_Hidden method

ShapeBase::get_Hidden method

Gets or sets a boolean value indicating whether the shape is visible.

bool Aspose::Words::Drawing::ShapeBase::get_Hidden()

Examples

Shows how to hide the shape.

auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Shadow color.docx");

auto shape = System::ExplicitCast<Aspose::Words::Drawing::Shape>(doc->GetChild(Aspose::Words::NodeType::Shape, 0, true));
if (!shape->get_Hidden())
{
    shape->set_Hidden(true);
}

doc->Save(get_ArtifactsDir() + u"Shape.Hidden.docx");

See Also