Class RadThemeComponentBase.ThemeContext
Provides context for theme operations on controls. This class is used internally by the theming system.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class ThemeContext
Remarks
ThemeContext allows saving and restoring control positions and states during theme operations to ensure proper layout after theme changes.
Constructors
ThemeContext(Control)
Initializes a new instance of the RadThemeComponentBase.ThemeContext class.
Declaration
public ThemeContext(Control control)
Parameters
System.Windows.Forms.Control
control
The control to create a context for. |
Properties
Control
Gets the control associated with this theme context.
Declaration
public Control Control { get; }
Property Value
System.Windows.Forms.Control
The Control instance for this context. |
ExcludeFromNearest
Gets the list of controls to exclude from nearest neighbor operations.
Declaration
public List<Control> ExcludeFromNearest { get; }
Property Value
System.Collections.Generic.List<System.Windows.Forms.Control>
A list of controls that should be excluded from position correction operations. |
Methods
CorrectPositions()
Declaration
public void CorrectPositions()
GetInfo(Int32)
Declaration
public RadThemeComponentBase.ThemeContext.ControlInfo GetInfo(int hashCode)
Parameters
System.Int32
hashCode
|
Returns
RadThemeComponentBase.ThemeContext.ControlInfo
|
Restore()
Declaration
public void Restore()
Save()
Declaration
public void Save()