Aspose::Words::Drawing::ShadowFormat class

ShadowFormat class

Represents shadow formatting for an object. To learn more, visit the Working with Graphic Elements documentation article.

class ShadowFormat : public System::Object

Methods

MethodDescription
Clear()Clears shadow format.
get_Color()Gets a Color object that represents the color for the shadow. The default value is Black.
get_Type()Gets or sets the specified ShadowType for ShadowFormat.
get_Visible()Returns true if the formatting applied to this instance is visible.
GetType() const override
Is(const System::TypeInfo&) const override
set_Type(Aspose::Words::Drawing::ShadowType)Setter for Aspose::Words::Drawing::ShadowFormat::get_Type.
static Type()

Examples

Shows how to get shadow color.

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));
System::SharedPtr<Aspose::Words::Drawing::ShadowFormat> shadowFormat = shape->get_ShadowFormat();

ASSERT_EQ(System::Drawing::Color::get_Red().ToArgb(), shadowFormat->get_Color().ToArgb());
ASSERT_EQ(Aspose::Words::Drawing::ShadowType::ShadowMixed, shadowFormat->get_Type());

See Also