Class MeasurementControl
Represents per-thread static instance of special RadControl, which may be used for explicit measure of RadElement instance. This functionality is required for example in the RadComboBox, when we need to calculate the size of the drop-down before it is displayed.
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public sealed class MeasurementControl : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Properties
ThreadInstance
Gets the instance of the measurement tree (valid per UI thread)
Declaration
public static MeasurementControl ThreadInstance { get; }
Property Value
MeasurementControl
|
Methods
GetAsBitmapEx(Boolean, RadElement, SizeF, SizeF, Brush, Single, SizeF)
Declaration
public Bitmap GetAsBitmapEx(bool doArrangeAndMeasure, RadElement element, SizeF availableSize, SizeF finalSize, Brush brush, float totalAngle, SizeF totalScale)
Parameters
System.Boolean
doArrangeAndMeasure
|
RadElement
element
|
System.Drawing.SizeF
availableSize
|
System.Drawing.SizeF
finalSize
|
System.Drawing.Brush
brush
|
System.Single
totalAngle
|
System.Drawing.SizeF
totalScale
|
Returns
System.Drawing.Bitmap
|
GetAsBitmapEx(Graphics, Boolean, RadElement, SizeF, SizeF, Brush, Single, SizeF)
Declaration
public void GetAsBitmapEx(Graphics graphics, bool doArrangeAndMeasure, RadElement element, SizeF availableSize, SizeF finalSize, Brush brush, float totalAngle, SizeF totalScale)
Parameters
System.Drawing.Graphics
graphics
|
System.Boolean
doArrangeAndMeasure
|
RadElement
element
|
System.Drawing.SizeF
availableSize
|
System.Drawing.SizeF
finalSize
|
System.Drawing.Brush
brush
|
System.Single
totalAngle
|
System.Drawing.SizeF
totalScale
|
GetAsBitmapEx(Graphics, RadElement, Brush, Single, SizeF)
Declaration
public void GetAsBitmapEx(Graphics memoryGraphics, RadElement element, Brush backColor, float totalAngle, SizeF totalScale)
Parameters
System.Drawing.Graphics
memoryGraphics
|
RadElement
element
|
System.Drawing.Brush
backColor
|
System.Single
totalAngle
|
System.Drawing.SizeF
totalScale
|
GetAsBitmapEx(Graphics, RadElement, SizeF, SizeF, Brush, Single, SizeF)
Declaration
public void GetAsBitmapEx(Graphics graphics, RadElement element, SizeF availableSize, SizeF finalSize, Brush brush, float totalAngle, SizeF totalScale)
Parameters
System.Drawing.Graphics
graphics
|
RadElement
element
|
System.Drawing.SizeF
availableSize
|
System.Drawing.SizeF
finalSize
|
System.Drawing.Brush
brush
|
System.Single
totalAngle
|
System.Drawing.SizeF
totalScale
|
GetAsBitmapEx(RadElement, Brush, Single, SizeF)
Declaration
public Bitmap GetAsBitmapEx(RadElement element, Brush backColor, float totalAngle, SizeF totalScale)
Parameters
RadElement
element
|
System.Drawing.Brush
backColor
|
System.Single
totalAngle
|
System.Drawing.SizeF
totalScale
|
Returns
System.Drawing.Bitmap
|
GetAsBitmapEx(RadElement, SizeF, SizeF, Brush, Single, SizeF)
Declaration
public Bitmap GetAsBitmapEx(RadElement element, SizeF availableSize, SizeF finalSize, Brush brush, float totalAngle, SizeF totalScale)
Parameters
RadElement
element
|
System.Drawing.SizeF
availableSize
|
System.Drawing.SizeF
finalSize
|
System.Drawing.Brush
brush
|
System.Single
totalAngle
|
System.Drawing.SizeF
totalScale
|
Returns
System.Drawing.Bitmap
|
GetDesiredSize(RadElement, SizeF)
Gets the element's desired size, using the specified available.
Declaration
public SizeF GetDesiredSize(RadElement element, SizeF availableSize)
Parameters
RadElement
element
|
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
RegisterHostedControl(RadHostItem)
Declaration
public override void RegisterHostedControl(RadHostItem hostElement)
Parameters
RadHostItem
hostElement
|
Overrides
UnregisterHostedControl(RadHostItem, Boolean)
Declaration
public override void UnregisterHostedControl(RadHostItem hostElement, bool removeControl)
Parameters
RadHostItem
hostElement
|
System.Boolean
removeControl
|