Professional Documents
Culture Documents
Solution
2. IFrameList::GetFrameIndex returns the index of the current frame in the list of frames.
Sample code
Number of columns.
Column width.
Solution
To change the frame options for the current selection, use the ITextFrameOptionsSuite suite. For example,
to increment the number of columns, follow these steps:
1. Use ISelectionUtils::QuerySuite (on the kUtilsBoss class) to get the text frame options suite interface
(ITextFrameOptionsSuite).
4. This suite uses a data object to maintain the collection of options available for text frame. The API
provides an implementation that can be used (see ITextFrameOptionsData interface available on
kObjStylesTFOptionsCollectDataBoss). Create this boss object, and set the required state.
5. Use ITextFrameOptionsSuite::SetTFOColumns to apply the new columns value defined in the data
object to the selection.