AttrHelper property |
[Top] [Chapter] [Previous] [Next] |
Applies to Declaration IWPAttrInterface AttrHelper Description This attribute interface can be used to interpret and create character attribute index values. This code first assigns the attribute index values which represents the character attributes "Courier New, 10.5pt, green" to an integer variable and then inserts text which will use this attributes
IWPAttrInterface help = wpdllInt1.AttrHelper; help.Clear(); help.SetFontface("Courier New"); help.SetColor(wpdllInt1.ToRGB(Color.Green)); help.SetFontSize(10.5F); int standard = help.CharAttrIndex; wpdllInt1.TextCursor.InputString("Hello World", standard); Category |