Friday, November 11, 2011

Creating a new Paragraph Format

Paragraphs are, in FDK parlance, named objects. Use the NewNamedObject() to create one. Pass in the type of object and the name you wish to use.

var doc = app.ActiveDoc;
pgfFmt = doc.NewNamedObject (Constants.FO_PgfFmt, "My Fmt");

The newly created format has default properties.


You can create a long list of objects the same way including colors, condition formats, and character formats. (Look for the Name property.)

No comments:

Post a Comment