ImageGear .NET v24.12 - Updated
GetAutoFitSize Method (ImGearARTNote)




ImageGear24.Art Assembly > ImageGear.ART Namespace > ImGearARTNote Class : GetAutoFitSize Method
The page view control that contains text mark.
The page display of the page view control.
The auto fit mode.
Calculates mark's bounding box size that will fit either entire text, or the widest text line of the text.
Syntax
'Declaration
 
Public Function GetAutoFitSize( _
   ByVal pageView As IImGearScrollableView, _
   ByVal pageDisplay As IImGearPageDisplay, _
   ByVal autoFitMode As ImGearARTTextAutoFitMode _
) As ImGearSize
'Usage
 
Dim instance As ImGearARTNote
Dim pageView As IImGearScrollableView
Dim pageDisplay As IImGearPageDisplay
Dim autoFitMode As ImGearARTTextAutoFitMode
Dim value As ImGearSize
 
value = instance.GetAutoFitSize(pageView, pageDisplay, autoFitMode)

Parameters

pageView
The page view control that contains text mark.
pageDisplay
The page display of the page view control.
autoFitMode
The auto fit mode.

Return Value

ImageGear.Core.ImGearSize value with necessary dimensions of the mark's bounds.
Remarks
Calculated bounding box size depends on the autoFitMode. Possible values are:
See Also

Reference

ImGearARTNote Class
ImGearARTNote Members