Convert Utility function

[Top]  [Chapter]  [Previous]  [Next]

The following methods can be used to create number values for the method ParASet or to convert the result of ParAGet.

 

a) Functions to work with font names

 

int ConvertFontnameToIndex(string fontface)

 

string ConvertIndexToFontname(int value)

 

used with this property ids:

WPAT_CharFont = 1

WPAT_NumberFONT = 40

 

b) Functions to work with color values

 

int ConvertColorToIndex(int RGB_Value)

 

string ConvertIndexToText(int value)

 

used with this property ids:

 

WPAT_CharColor = 8

WPAT_CharBGColor = 9

WPAT_UnderlineColor = 14

WPAT_NumberFONTCOLOR = 42

WPAT_BGColor = 50

WPAT_FGColor = 51

WPAT_BorderColor = 89

WPAT_BorderColorL = 72

WPAT_BorderColorT = 73

WPAT_BorderColorR = 74

WPAT_BorderColorB = 75

 

Reserved:

WPAT_BorderColorDiaTLBR = 76

WPAT_BorderColorDiaTRBL = 77

WPAT_BorderColorH = 80

WPAT_BorderColorV = 83

WPAT_BorderColorBar = 86

 

c) Functions to convert text values

 

int ConvertTextToValue(string SomeText)

 

int ConvertIndexToColor(int value)

 

used with this property ids:

 

WPAT_NumberTEXTB = 34

WPAT_NumberTEXTA = 35

WPAT_NumberTEXT = 36

WPAT_PAR_COMMAND = 151

WPAT_STYLE_NEXT_NAME = 181

WPAT_STYLE_BASE_NAME = 182

 

Tip: Some color index values are predefined - see list.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


[convert_utility.htm]    Copyright © 2007 by WPCubed GmbH