![]() | InDesign SDK 20.5 |
#include <IStaticTextLineBreaker.h>

Public Types | |
| enum | { kDefaultIID = IID_ISTATICTEXTLINEBREAKER } |
Public Member Functions | |
| virtual void | CreateLineBreaks (const PMString &stringToBreak, const PMReal maxLineWidth, const InterfaceFontInfo &fontInfo)=0 |
| virtual PMString | GetNthLine (int32 lineIndex) const =0 |
| virtual PMPoint | GetNthLineSize (int32 lineIndex) const =0 |
| virtual int32 | GetNumLines () const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface is used to break a long string into multiple lines. It's mainly used by multiline static text widgets.
| pure virtual |
Breaks the string into a set of lines, based on the given max line width and the font.
| stringToBreak | The string we're breaking into lines. |
| maxLineWidth | The max line width. |
| fontInfo | the font to use in computing text width. |
| pure virtual |
Gets the nth line from the last call to CreateLineBreaks
| lineIndex | which line to return |
| pure virtual |
Gets the width and height for the nth line from the last call to CreateLineBreaks
| lineIndex | which line to return |
| pure virtual |
Gets the line count from the last call to CreateLineBreaks