GroupShapes.Range(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a ShapeRange object.
public:
Microsoft::Office::Interop::Word::ShapeRange ^ Range(System::Object ^ % Index);
public Microsoft.Office.Interop.Word.ShapeRange Range (ref object Index);
abstract member Range : obj -> Microsoft.Office.Interop.Word.ShapeRange
Public Function Range (ByRef Index As Object) As ShapeRange
Parameters
- Index
- Object
Required Object. Specifies which shapes are to be included in the specified range. Can be an integer that specifies the index number of a shape within the Shapes collection, a string that specifies the name of a shape, or an Object array that contains integers or strings.
Returns
Remarks
ShapeRange objects don't include InlineShape objects. An InlineShape object is equivalent to a character and is positioned as a character within a range of text. Shape objects are anchored to a range of text (the selection, by default), but they can be positioned anywhere on the page. A Shape object will always appear on the same page as the range it's anchored to.
Most operations that you can do with a Shape object you can also do with a ShapeRange object that contains a single shape. Some operations, when performed on a ShapeRange object that contains multiple shapes, produce an error.