'Declaration
Public Function SetAnnotationRect( _ ByVal AnnotationIdx As Integer, _ ByVal Left As Single, _ ByVal Top As Single, _ ByVal Width As Single, _ ByVal Height As Single _ ) As GdPictureStatus
public GdPictureStatus SetAnnotationRect( int AnnotationIdx, float Left, float Top, float Width, float Height )
public function SetAnnotationRect( AnnotationIdx: Integer; Left: Single; Top: Single; Width: Single; Height: Single ): GdPictureStatus;
public function SetAnnotationRect( AnnotationIdx : int, Left : float, Top : float, Width : float, Height : float ) : GdPictureStatus;
public: GdPictureStatus SetAnnotationRect( int AnnotationIdx, float Left, float Top, float Width, float Height )
public: GdPictureStatus SetAnnotationRect( int AnnotationIdx, float Left, float Top, float Width, float Height )
Parameters
- AnnotationIdx
- The 0-based index of the required annotation within the current page. It must be a value from 0 to GetAnnotationCount-1.
- Left
- The horizontal (X) coordinate of the closest point to the currently defined origin, where the annotation's bounding box is to be located. The value is expressed in the current units specified by the SetMeasurementUnit method and it is related to the current page. For further assistance, please see the Remarks section below.
- Top
- The vertical (Y) coordinate of the closest point to the currently defined origin, where the annotation's bounding box is to be located. The value is expressed in the current units specified by the SetMeasurementUnit method and it is related to the current page. For further assistance, please see the Remarks section below.
- Width
- The new width of the annotation's bounding box, expressed in the current units specified by the SetMeasurementUnit method.
- Height
- The new height of the annotation's bounding box, expressed in the current units specified by the SetMeasurementUnit method.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.