Aspose::Words::Tables::Table::get_DistanceTop method

Table::get_DistanceTop method

Gets or sets distance between table top and the surrounding text, in points.

double Aspose::Words::Tables::Table::get_DistanceTop()

Examples

Shows the minimum distance operations between table boundaries and text.

auto doc = MakeObject<Document>(MyDir + u"Table wrapped by text.docx");

SharedPtr<Table> table = doc->get_FirstSection()->get_Body()->get_Tables()->idx_get(0);

ASPOSE_ASSERT_EQ(25.9, table->get_DistanceTop());
ASPOSE_ASSERT_EQ(25.9, table->get_DistanceBottom());
ASPOSE_ASSERT_EQ(17.3, table->get_DistanceLeft());
ASPOSE_ASSERT_EQ(17.3, table->get_DistanceRight());

See Also