Manages print area of drawing sheet.
This interface is obtained from method.
Properties
-
Property ActivationState( iActivated)
-
Activates or deactivates the print area.
- Parameters:
-
- in
- boolean iActivated [in] The activation state of the print area (TRUE means activated, FALSE means deactivated).
dd>
- Returns:
- Un HRESULT
- S_OK
- The activation state could be valuated.
- E_FAIL
- No activation or deactivation possible.
dd>
-
Property AreaHeigth( iHeigth)
-
Valuates the heigth of the print area.
- Parameters:
-
- in
- double iHeigth [in] The heigth of the print area. The value must be strictly positive.
dd>
- Returns:
- Un HRESULT
- S_OK
- E_FAIL
dd>
-
Property AreaLowX( iX)
-
Valuates the low x coordinate of the print area.
- Parameters:
-
- in
- double iX [in] The low x coordinate.
dd>
- Returns:
- Un HRESULT
- S_OK
- E_FAIL
dd>
-
Property AreaLowY( iY)
-
Valuates the low y coordinate of the print area.
- Parameters:
-
- in
- double iY [in] The low y coordinate.
dd>
- Returns:
- Un HRESULT
- S_OK
- E_FAIL
dd>
-
Property AreaWidth( iWidth)
-
Valuates the width of the print area.
- Parameters:
-
- in
- double iWidth [in] The width of the print area. The value must be strictly positive.
dd>
- Returns:
- Un HRESULT
- S_OK
- E_FAIL
dd>
Methods
-
Sub GetArea( oX, oY, oWidth, oHeigth, oActivated)
-
Gets the printing area defined on an object.
Also communicates the activation state of the printing area.
- All the values are given in mm.
- Parameters:
-
- out
- double oX [out] The low x coordinate of the area.
dd>
- out
- double oY [out] The low y coordinate of the area.
dd>
- out
- double oWidth [out] The width of the area.
dd>
- out
- double oHeigth [out] The heigth of the area.
dd>
- out
- boolean oActivated [out] The activation state of the print area (TRUE means activated, FALSE means deactivated).
dd>
- Returns:
- Un HRESULT
- S_OK
- The print area was succesfully retrieved.
- E_FAIL
- No print area could be retrived.
dd>
-
Sub SetArea( iX, iY, iWidth, iHeigth)
-
Sets a set of coordinates to define a rectangle print area.
- All the values are given in mm.
- Parameters:
-
- in
- double iX [in] The low x coordinate of the area.
dd>
- in
- double iY [in] The low y coordinate of the area.
dd>
- in
- double iWidth [in] The width of the area. The value must be strictly positive.
dd>
- in
- double iHeigth [in] The heigth of the area. The value must be strictly positive.
dd>
- Returns:
- Un HRESULT
- S_OK
- The print area was successfully defined.
- E_FAIL
- No print area could be defined.
dd>