SE_shape_get_extent

Returns the extent of a shape or a shape part

Usage syntax

LONG SE_shape_get_extent (const SE_SHAPE shape, LONG part_num, SE_ENVELOPE *extent);

Parameters
shape A handle to an active shape object
part_num The number of the part to return the extent for
extent A pointer to an SE_ENVELOPE structure, returned as the extent of the shape part or shape
Description

SE_shape_get_extent returns the extent of the shape. If part_num is 0, the extent of the entire shape is returned. If part_num is nonzero, the extent of the specified part is returned.

Returns

SE_SUCCESS
SE_INVALID_PARTNUM

SE_INVALID_POINTER

SE_INVALID_SHAPE_OBJECT

Notes

∙  Ignores any CAD data