AttrHelper property

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

Applies to

Rtf2Pdf

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 = wpdf.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

Character Attributes


[idh_wpdllint_attrhelper_2.htm]    Copyright © 2007 by WPCubed GmbH