Method CreateMeasureContext
CreateMeasureContext(XSize, XGraphicsUnit, XPageDirection, RenderEvents?)
Creates the measure context. This is a graphics context created only for querying measures of text. Drawing on a measure context has no effect. Commit renderEvents to allow RenderTextEvent calls.
public static XGraphics CreateMeasureContext(XSize size, XGraphicsUnit pageUnit, XPageDirection pageDirection, RenderEvents? renderEvents = null)
Parameters
sizeXSizepageUnitXGraphicsUnitpageDirectionXPageDirectionrenderEventsRenderEvents