Package com.ms.fx Previous
Previous
Contents
Contents
Index
Index
Next
Next

Class txtRun

Constructors , Methods , Fields

public class txtRun 
{
  // Fields
  public final static int HAS_TABS;
  public final static int EXTENDED_RUN;
  public final static int RESET_X;
  public int flags;
  public int idx;
  public int chars;
  public txtRun next;

  // Constructors
  public txtRun();

  // Methods
  public int[] getGlyphIndices(int offs, int len);
}

A class that manages text runs generated by FxFormattedText.

Formatted text holds runs of text built up everytime the ensureNotDirty(); method of the FxFormattedText class is called. This formatting determines how the text is placed on screen. The application may override these values by implementing the IFxTextCallback interface and manipulating the runs when the methods are called.


Constructors


txtRun

public txtRun();

Creates an empty text run.


Methods


getGlyphIndices

public int[] getGlyphIndices(int offs, int len);

Retrieves the glyph index values for the text run.

Return Value:

If the font does not support glyph indices, then the unicode values will be returned.

ParameterDescription
offs The offest to use from the buffer in FxText.
len The length of the array.

Remarks:

This method allows you to access glyphs not represented in Unicode, such as combined characters in languages like Hebrew or Arabic. It is also used for fonts with multiple representations of a glyph. Currently returns null.


Fields

HAS_TABS
Text run flag denoting a text run that contains tabs.
EXTENDED_RUN
Text run flag denoting an extended run.
RESET_X
Ignore the previous x and go to the origin.
flags
Text run flags. May be EXTENDED_RUN or HAS_TABS.
idx
The index into the buffer held by the controlling FxFormattedText class.
chars
The number of characters the run covers.
next
A link to the next run in the list.


Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.