Version

GetPixelLengthOfTextSpan Method

Returns the length (in pixels) of the rendered text (on this line) described by the specified Infragistics.Documents.Parsing.TextSpan.
Syntax
'Declaration
 
Public Function GetPixelLengthOfTextSpan( _
   ByVal textSpan As Infragistics.Documents.Parsing.TextSpan _
) As Double
public double GetPixelLengthOfTextSpan( 
   Infragistics.Documents.Parsing.TextSpan textSpan
)

Parameters

textSpan
The Infragistics.Documents.Parsing.TextSpan that describes the text (on this line) whose length is to be returned.

Return Value

The length (in pixels) of the rendered text described by the specified Infragistics.Documents.Parsing.TextSpan.
Remarks

Note: The specified Infragistics.Documents.Parsing.TextSpan must point to a offset and length that is contained within the line. if not, a length of zero is returned.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also