Search
ShapeTemplate.SetPictureRect Method
See Also
 



Sets the position of the images displayed in instances of this shape.

 Syntax

VB6  Copy Code

Public Sub SetPictureRect( _
    ByVal x As Single, _
    ByVal y As Single, _
    ByVal width As Single, _
    ByVal height As Single _
)

C++  Copy Code

public:
void SetPictureRect (
    float x,
    float y,
    float width,
    float height
)

 Parameters

x
The relative x position of a box image specified as percent of the box width.
y
The relative y position of a box image specified as percent of the box height.
width
The width of a box image, specified as percent of the box width.
height
The height of a box image, specified as percent of the box height.

 Remarks

The coordinates of the image location are specified in percent, relatively to the rectangular bounds of boxes. The default value (0, 0, 100, 100) makes the image displayed in a box cover the whole area of that box.

 See Also