Image Viewer CP ActiveX Control

SetHashBrushValue

 

Set the hash brush value when textstyle = 3.
 

Public Function SetHashBrushValue( _
   ByVal iBrushStyle As Integer, _
   ByVal clrForeColor As Color _
   ByVal clrBackColor As Color
) 

 

Parameter

iBrushStyle
  

0 - HatchStyleHorizontal 

1 - HatchStyleVertical 

2 - HatchStyleForwardDiagonal 

3 - HatchStyleBackwardDiagonal 

4 - HatchStyleCross 

5 - HatchStyleDiagonalCross 

6 - HatchStyle05Percent 

7 - HatchStyle10Percent 

8 - HatchStyle20Percent 

9 - HatchStyle25Percent 

10 - HatchStyle30Percent 

11 - HatchStyle40Percent 

12 - HatchStyle50Percent 

13 - HatchStyle60Percent 

14 - HatchStyle70Percent 

15 - HatchStyle75Percent 

16 - HatchStyle80Percent 

17 - HatchStyle90Percent 

18 - HatchStyleLightDownwardDiagonal 

19 - HatchStyleLightUpwardDiagonal 

20 - HatchStyleDarkDownwardDiagonal 

21 - HatchStyleDarkUpwardDiagonal 

22 - HatchStyleWideDownwardDiagonal 

23 -HatchStyleWideUpwardDiagonal 

24 -HatchStyleLightVertical 

25 -HatchStyleLightHorizontal 

26 -HatchStyleNarrowVertical 

27 -HatchStyleNarrowHorizontal 

28 - HatchStyleDarkVertical 

29 - HatchStyleDarkHorizontal 

30 - HatchStyleDashedDownwardDiagonal 

31 - HatchStyleDashedUpwardDiagonal 

32 - HatchStyleDashedHorizontal 

33 - HatchStyleDashedVertical 

34 - HatchStyleSmallConfetti 

35 - HatchStyleLargeConfetti 

36 - HatchStyleZigZag 

37 - HatchStyleWave 

38 - HatchStyleDiagonalBrick 

39 - HatchStyleHorizontalBrick 

40 - HatchStyleWeave 

41 - HatchStylePlaid 

42 - HatchStyleDivot 

43 - HatchStyleDottedGrid 

44 - HatchStyleDottedDiamond 

45 - HatchStyleShingle 

46 - HatchStyleTrellis 

47 - HatchStyleSphere 

48 - HatchStyleSmallGrid 

49 - HatchStyleSmallCheckerBoard 

50 - HatchStyleLargeCheckerBoard 

51 -HatchStyleOutlinedDiamond 

52 - HatchStyleSolidDiamond 

clrForeColor
   the foreground color of hash brush.

clrBackColor
   the background color of hash brush.

Return Value

No return value.


Example

   

Visual Basic Syntax
ImageViewer1.TextStyle = 3
ImageViewer1.SetHashBrushValue  48 , RGB(255,0,0),RGB(255,255,0)