SetDocImageColor method

The document is displayed with the new image color.

Method
short SetDocImageColor(
short Color )
Parameters
Color
Specifies the new document image color. This must be one of the following color values found in ARSOLEEX.H:
  ARS_OLE_COLOR_BLACK
  ARS_OLE_COLOR_RED
  ARS_OLE_COLOR_BLUE
  ARS_OLE_COLOR_GREEN
  ARS_OLE_COLOR_YELLOW
  ARS_OLE_COLOR_GREY
  ARS_OLE_COLOR_MAGENTA
  ARS_OLE_COLOR_CYAN
Description
The document is displayed with the new image color.
Return Value
Refer to return codes.
See Also
GetDocImageColor method

C/C + +

The following example sets the document image color to red.
 CArsOle * pArsCtrl;
 short rc;
   .
   .
 rc = pArsCtrl->SetDocImageColor( ARS_OLE_COLOR_RED );
 if ( rc != ARS_OLE_RC_SUCCESS )
   ERROR;
   .
   .

Visual Basic

Dim rc As Integer

 .
 .

rc = ArsOle.SetDocImageColor (ARS_OLE_COLOR_RED)
If rc <> ARS_OLE_RC_SUCCESS Then
   MsgBox "ERROR"
   End
End If

 .
 .