Loading...
Searching...
No Matches
OFT.Rendering.Context.IStringMeasure Interface Reference
Inheritance diagram for OFT.Rendering.Context.IStringMeasure:
[legend]

Public Member Functions

Size MeasureString (string text, RenderFont font)
 Returns size of the text. Resulted height will be maximum of possible font height. Use when your text will change.
 
Rectangle MeasureStringWithOverhang (string text, RenderFont renderFont)
 Returns the smallest rectangle that text will fit. Height will depend on actual drawing characters.
 

Member Function Documentation

◆ MeasureString()

Size OFT.Rendering.Context.IStringMeasure.MeasureString ( string  text,
RenderFont  font 
)

Returns size of the text. Resulted height will be maximum of possible font height. Use when your text will change.

Parameters
text
font
Returns

Implemented in OFT.Rendering.Context.RenderContext.

◆ MeasureStringWithOverhang()

Rectangle OFT.Rendering.Context.IStringMeasure.MeasureStringWithOverhang ( string  text,
RenderFont  renderFont 
)

Returns the smallest rectangle that text will fit. Height will depend on actual drawing characters.

Parameters
text
renderFont
Returns

Implemented in OFT.Rendering.Context.RenderContext.


The documentation for this interface was generated from the following file: