skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class LightVisualElement

Represents a lightweight visual element that supports text, border, image, background color, and foreground color with various layout adjustments. This element provides efficient rendering capabilities for common UI scenarios while implementing text and image primitive interfaces.

Inheritance
System.Object
DisposableObject
RadObject
RadElement
VisualElement
RadComponentElement
RadItem
UIItemBase
LightVisualElement
AIPromptButtonsContainer
AIPromptOutputVisualItem
AIPromptToolbar
AIPromptToolbarItem
AIPromptViewBase
RadAIPromptElement
AlertWindowButtonsPanel
AlertWindowCaptionGrip
AlertWindowContentElement
AlertWindowTextAndSystemButtonsElement
ArrowElement
BackstageVisualElement
RadBarcodeViewElement
BaseChatCardElement
BaseChatItemElement
BaseChatOverlay
BaseListViewVisualItem
BaseMapElement
BaseTimeSpanPickerUIComponent
BaseWaitingBarIndicatorElement
BaseWizardElement
RadCalculatorTextAreaElement
CalendarVisualElement
CardViewEditorItem
ChartTitleElement
ChartWrapper
ChatMessageAvatarElement
ChatMessageBubbleElement
ChatMessageNameElement
ChatMessageStatusElement
ChatSendButtonElement
ChatShowToolbarElement
ChatToolbarScrollLeftButtonElement
ChatToolbarScrollRightButtonElement
CollapsiblePanelButtonElement
CollapsiblePanelTextElement
ColorEditorColorBox
AIChatMainMessageElement
AIChatTitleElement
DataFilterEditorElement
DescriptionContentListVisualItem
DetailListViewCellElement
DraggableLayoutControlOverlayElement
DrillBackButton
ExpanderItem
FilterMenuCalendarElement
FilterMenuListElement
FilterMenuTreeElement
BaseFilterViewCategoryElement
FilterViewCategoryExpandButtonElement
FilterViewHeaderElement
FlightCardAirportInfo
FormulaBarButtonsElement
FormulaBarNameBoxElement
FormulaBarTextBoxElement
GanttIndentCellElement
GanttViewTimelineItemBottomStackElement
GanttViewTimelineItemElement
GanttViewVisualElement
GaugeVisualElement
RadLinearGaugeElement
RadRadialGaugeElement
GridGroupHeaderItem
GridGroupHeaderItemsContainer
GridGroupHeaderList
GridHeaderElement
GridHyperlinkCellContentElement
GridTableBodyElement
GridVisualElement
GroupPanelSizeGripElement
HeaderPresenterElement
HeatMapTitleElement
LegendItemGradient
LegendItemHeaderElement
LegendItemMarker
LegendItemTitle
LegendTitleElement
HorizontalScrollableStackElement
ImageEditorCanvasElement
ImageEditorCommandsElement
ImageEditorZoomElement
InnerItem
InnerItemLayoutElement
LayoutControlContainerElement
LayoutControlItemBase
LegendItemMarker
LegendItemTitle
LegendTitleElement
LightVisualButtonElement
LiveTileFrameElement
MapCopyrightLabelElement
MapLegendElement
MapLegendItemColorElement
MapLegendItemElement
MapLegendItemTextElement
MapLegendSubtitleElement
MapLegendTitleElement
MapNavigationBarElement
MapNavigationElement
MapScaleIndicatorElement
MapSearchBarElement
MapSearchIconElement
BaseNavigationElement
NavigationElementLayout
NavigationViewBackgroundItem
NavigationViewHeaderElement
OverlayPopupElement
PdfSignatureElement
PdfSizeGripElement
PictureBoxBasePanelElement
PictureBoxCanvasElement
PipsContainer
PipsPagerItem
PivotCellElement
PivotDescriptorContainer
PivotFieldDescriptorElement
PivotFilterFunctionButton
PivotFilterMenuTreeElement
PivotGroupElement
ProgressBarTextElement
ProgressIndicatorElement
PropertyGridContentElement
PropertyGridErrorIndicatorElement
PropertyGridHelpContentElement
PropertyGridHelpElement
PropertyGridHelpTitleElement
PropertyGridItemElementBase
PropertyGridSizeGripElement
PropertyGridSplitElement
PropertyValueButtonElement
RadBreadCrumbElement
RadCalculatorButton
RadCalculatorContentElement
RadCalculatorElement
RadCalculatorMemoryElement
RadCalendarFastNavigationElement
RadChartElement
RadChatElement
RadClockElement
RadCollapsiblePanelElement
RadCommandBarArrowButton
RadCommandBarOverflowPanelElement
RadCommandBarVisualElement
RadDataLayoutElement
RadDesktopAlertElement
RadDiagramElement
RadDropDownListEditableAreaElement
RadFilterViewElement
RadFixedPageElement
RadGanttViewElement
RadGroupBoxElement
RadHeatMapElement
RadImageEditorElement
RadListViewElement
RadListVisualItem
RadPageViewElementBase
RadPanoramaElement
RadPdfViewerContainer
RadPictureBoxElement
RadPivotGridElement
RadProgressBarElement
RadRadiomark
RadRibbonBarCaption
RadRibbonBarElement
RadSparklineElement
RadSpreadsheetElement
RadSpreadsheetFormulaBar
RadSpreadsheetSheetSelector
RadSpreadsheetStatusBar
RadStepProgressBarElement
RadTabbedFormControlCaption
RadTabbedFormControlContentAreaElement
RadTabbedFormControlElement
RadTabbedFormControlItem
RadTabbedFormControlTabsElement
RadTaskBoardColumnElement
RadTaskBoardColumnHeaderElement
RadTaskBoardElement
RadTaskCardElement
RadTaskCardTagElement
RadTaskCardUserElement
RadTaskDialogFootnote
RadTaskDialogIcon
RadTaskDialogPage
RadTaskDialogProgressBar
RadTileElement
RadTimePickerContentElement
RadTimeSpanPickerContentElement
RadToggleSwitchElement
RadToolbarFormControlElement
RadTreeMapElement
RadVirtualGridElement
RadVirtualKeyboardElement
RadWaitingBarElement
RadWebCamElement
RadWizardElement
RangeSelectorVisualElement
RibbonFormElement
SchedulerNavigatorElement
SchedulerVisualElement
ScrollViewElement<T>
ScrollViewElementContainer
SeparatorElement
SheetSelectorTabItemBase
SheetTabItemsContainerElement
SparkWrapper
SplashScreenLightVisualElement
WatermarkBannerElement
WatermarkLinkLabelElement
SpreadsheetSheetSelectorGripElement
StackLayoutElement
StackLayoutElementLite
StepConnectionElement
StepContentElement
StepItemIndicatorElement
StepProgressItem
SuggestedActionElement
TabbedFormElement
RadTaskDialogCommandArea
RadTaskDialogContentArea
RadTaskDialogControlElement
RadTaskDialogHeaderLayout
TaskDialogExpanderButtonElement
TaskDialogLightVisualElement
TextBoxWrapPanel
TileGroupElement
TimeHeaderArrow
TimePickerDoneButtonElement
TimeSpanPickerDoneButtonElement
TimeTableVisualElement
ToggleSwitchPartElement
ToggleSwitchThumbElement
ToolbarActionElement
ToolbarFormElement
TrackballInfoElement
TrackBarVisualElement
LegendItemMarker
LegendItemTitle
LegendTitleElement
TreeMapTitleElement
TreeNodeImageElement
TreeViewVisual
ValidationHelperElement
VirtualGridCellElement
VirtualGridDetailViewCellElement
VirtualGridPagingPanelElement
VirtualGridRowElement
VirtualGridWaitingElement
WaitingBarContentElement
WaitingBarSeparatorElement
WaitingBarTextElement
WizardPage
WizardView
SecondaryTextElement
Thumb
Inherited Members
UIItemBase.PaintFill(IGraphics, Single, SizeF)
UIItemBase.GetFillPaintRect(Single, SizeF)
UIItemBase.PaintFill(IGraphics, Single, SizeF, RectangleF)
UIItemBase.PaintBorder(IGraphics, Single, SizeF)
UIItemBase.PaintBorder(IGraphics, Single, SizeF, RectangleF)
UIItemBase.OnBoundsChanged(RadPropertyChangedEventArgs)
UIItemBase.GetBorderPaintRect(Single, SizeF)
UIItemBase.ShouldUsePaintBuffer()
UIItemBase.IPrimitiveElement.ShouldUsePaintBuffer()
UIItemBase.IPrimitiveElement.GetPaintRectangle(Single, Single, SizeF)
UIItemBase.IPrimitiveElement.GetExactPaintingRectangle(Single, SizeF)
UIItemBase.IShapedElement.GetCurrentShape()
UIItemBase.IPrimitiveElement.IsDesignMode
UIItemBase.IPrimitiveElement.BorderThickness
UIItemBase.IBorderElement.ForeColor
UIItemBase.IBorderElement.ForeColor2
UIItemBase.IBorderElement.ForeColor3
UIItemBase.IBorderElement.ForeColor4
UIItemBase.IBorderElement.InnerColor
UIItemBase.IBorderElement.InnerColor2
UIItemBase.IBorderElement.InnerColor3
UIItemBase.IBorderElement.InnerColor4
UIItemBase.IBorderElement.BoxStyle
UIItemBase.IBorderElement.GradientStyle
UIItemBase.IBorderElement.GradientAngle
UIItemBase.IBoxStyle.LeftColor
UIItemBase.IBoxStyle.LeftShadowColor
UIItemBase.IBoxStyle.TopColor
UIItemBase.IBoxStyle.TopShadowColor
UIItemBase.IBoxStyle.RightColor
UIItemBase.IBoxStyle.RightShadowColor
UIItemBase.IBoxStyle.BottomColor
UIItemBase.IBoxStyle.BottomShadowColor
UIItemBase.IBoxElement.Width
UIItemBase.IBoxElement.LeftWidth
UIItemBase.IBoxElement.TopWidth
UIItemBase.IBoxElement.RightWidth
UIItemBase.IBoxElement.BottomWidth
UIItemBase.IBoxElement.Offset
UIItemBase.IBoxElement.BorderSize
UIItemBase.IBoxElement.HorizontalWidth
UIItemBase.IBoxElement.VerticalWidth
RadItem.KeyDownEvent
RadItem.KeyPressEvent
RadItem.KeyUpEvent
RadItem.FocusCommand
RadItem.ActionCommand
RadItem.RadItemLastStateKey
RadItem.UseDefaultDisabledPaintProperty
RadItem.TextProperty
RadItem.TextOrientationProperty
RadItem.FlipTextProperty
RadItem.StringAlignmentProperty
RadItem.IsAddNewItemProperty
RadItem.ToolTipTextProperty
RadItem.EnableElementShadowProperty
RadItem.ShadowDepthProperty
RadItem.ShadowColorProperty
RadItem.IsPaintingRipple
RadItem.EnableRippleAnimationProperty
RadItem.RippleAnimationColorProperty
RadItem.EnableFocusBorderProperty
RadItem.FocusBorderColorProperty
RadItem.FocusBorderWidthProperty
RadItem.EnableFocusBorderAnimationProperty
RadItem.EnableHighlightProperty
RadItem.HighlightColorProperty
RadItem.EnableBorderHighlightProperty
RadItem.BorderHighlightColorProperty
RadItem.BorderHighlightThicknessProperty
RadItem.VisualStateProperty
RadItem.SetOwnerCollection(RadItemOwnerCollection)
RadItem.Select()
RadItem.OnSelect()
RadItem.Deselect()
RadItem.OnDeselect()
RadItem.DoKeyDown(KeyEventArgs)
RadItem.DoKeyPress(KeyPressEventArgs)
RadItem.DoKeyUp(KeyEventArgs)
RadItem.OnKeyDown(KeyEventArgs)
RadItem.OnKeyPress(KeyPressEventArgs)
RadItem.OnKeyUp(KeyEventArgs)
RadItem.RaiseBubbleEvent(RadElement, RoutedEventArgs)
RadItem.OnPropertyChanging(RadPropertyChangingEventArgs)
RadItem.OnEnabledChanged(RadPropertyChangedEventArgs)
RadItem.OnTextChanging(TextChangingEventArgs)
RadItem.OnTextChanged(EventArgs)
RadItem.OnTextOrientationChanged(EventArgs)
RadItem.OnFlipTextChanged(EventArgs)
RadItem.PaintOverride(IGraphics, Rectangle, Single, SizeF, Boolean)
RadItem.OnMouseDown(MouseEventArgs)
RadItem.OnMouseUp(MouseEventArgs)
RadItem.OnMouseLeave(EventArgs)
RadItem.StartRippleAnimation(MouseEventArgs)
RadItem.UpdateFocusBorder(Boolean)
RadItem.ContainsText()
RadItem.ProcessDialogKey(Keys)
RadItem.ProcessCmdKey(Message, Keys)
RadItem.ProcessMnemonic(Char)
RadItem.CallRaiseKeyDown(KeyEventArgs)
RadItem.RaiseKeyDown(KeyEventArgs)
RadItem.CallRaiseKeyPress(KeyPressEventArgs)
RadItem.RaiseKeyPress(KeyPressEventArgs)
RadItem.CallRaiseKeyUp(KeyEventArgs)
RadItem.RaiseKeyUp(KeyEventArgs)
RadItem.ReplaceDefaultDescriptors(PropertyDescriptorCollection)
RadItem.CallOnGesture(GestureEventArgs)
RadItem.OnGesture(GestureEventArgs)
RadItem.OnTwoFingerTapGesture(GestureEventArgs)
RadItem.OnPressAndTapGesture(PressAndTapGestureEventArgs)
RadItem.OnPanGesture(PanGestureEventArgs)
RadItem.OnRotateGesture(RotateGestureEventArgs)
RadItem.OnZoomGesture(ZoomGestureEventArgs)
RadItem.ISupportDrag.CanDrag(Point)
RadItem.CanDragCore(Point)
RadItem.ISupportDrag.GetDataContext()
RadItem.GetDragContextCore()
RadItem.ISupportDrag.GetDragHint()
RadItem.GetDragHintCore()
RadItem.ISupportDrop.DragDrop(Point, ISupportDrag)
RadItem.ProcessDragDrop(Point, ISupportDrag)
RadItem.ISupportDrop.DragOver(Point, ISupportDrag)
RadItem.ProcessDragOver(Point, ISupportDrag)
RadItem.ISupportDrop.DragEnter(Point, ISupportDrag)
RadItem.ProcessDragEnter(Point, ISupportDrag)
RadItem.ISupportDrop.DragLeave(Point, ISupportDrag)
RadItem.ProcessDragLeave(Point, ISupportDrag)
RadItem.IShortcutProvider.OnShortcut(ShortcutEventArgs)
RadItem.IShortcutProvider.OnPartialShortcut(PartialShortcutEventArgs)
RadItem.IShortcutProvider.OnShortcutsChanged()
RadItem.UpdateOnShortcutsChanged()
RadItem.CanHandleShortcut(ShortcutEventArgs)
RadItem.IsOnActiveForm(Control, Boolean)
RadItem.SetThemeValueOverride(RadProperty, Object, String)
RadItem.SetThemeValueOverride(RadProperty, Object, String, String)
RadItem.SetThemeValueOverride(RadProperty, Object, String, Type)
RadItem.ResetThemeValueOverride(RadProperty)
RadItem.ResetThemeValueOverride(RadProperty, String)
RadItem.ResetThemeValueOverrides()
RadItem.SuspendApplyOfThemeSettings()
RadItem.ResumeApplyOfThemeSettings()
RadItem.GetAvailableVisualStates()
RadItem.ShouldFallbackToDefaultTheme()
RadItem.UseDefaultDisabledPaint
RadItem.TextOrientation
RadItem.FlipText
RadItem.CanHaveOwnStyle
RadItem.Text
RadItem.Selectable
RadItem.DesignTimeAllowDrop
RadItem.DesignTimeAllowDrag
RadItem.DefaultAutoToolTip
RadItem.ShouldHandleMouseInput
RadItem.KeyTip
RadItem.ParentItem
RadItem.CommandBinding
RadItem.ShortcutsHandler
RadItem.EnableElementShadow
RadItem.ShadowDepth
RadItem.ShadowColor
RadItem.EnableRippleAnimation
RadItem.RippleAnimationColor
RadItem.EnableFocusBorder
RadItem.FocusBorderColor
RadItem.FocusBorderWidth
RadItem.EnableFocusBorderAnimation
RadItem.EnableHighlight
RadItem.HighlightColor
RadItem.EnableBorderHighlight
RadItem.BorderHighlightColor
RadItem.BorderHighlightThickness
RadItem.MnemonicText
RadItem.SerializeProperties
RadItem.ToolTipText
RadItem.ThemeRole
RadItem.VisualState
RadItem.StateManager
RadItem.AllowDrag
RadItem.AllowDrop
RadItem.Shortcuts
RadItem.AccessibleDescription
RadItem.AccessibleName
RadItem.AccessibleRole
RadItem.IStylableElement.VisualState
RadItem.IStylableElement.ThemeRole
RadItem.IStylableElement.FallbackToDefaultTheme
RadItem.ContainsMnemonic
RadItem.EnableAnalytics
RadItem.TextChanging
RadItem.TextChanged
RadItem.TextOrientationChanged
RadItem.FlipTextChanged
RadItem.QueryAccessibilityHelp
RadItem.KeyDown
RadItem.KeyPress
RadItem.KeyUp
RadItem.ZoomGesture
RadItem.RotateGesture
RadItem.PanGesture
RadItem.TwoFingerTapGesture
RadItem.PressAndTapGesture
RadComponentElement.ComponentElementLastStateKey
RadComponentElement.ToString()
RadComponentElement.GetService(Type)
RadComponentElement.CanRaiseEvents
RadComponentElement.Container
RadComponentElement.DesignMode
RadComponentElement.IsDesignMode
RadComponentElement.Site
RadComponentElement.DataBindings
VisualElement.DefaultSizeProperty
VisualElement.ForeColorProperty
VisualElement.BackColorProperty
VisualElement.FontProperty
VisualElement.SmoothingModeProperty
VisualElement.OpacityProperty
VisualElement.CustomFontProperty
VisualElement.CustomFontSizeProperty
VisualElement.CustomFontStyleProperty
VisualElement.OnFontChanged(EventArgs)
VisualElement.PaintChildren(IGraphics, Rectangle, Single, SizeF, Boolean)
VisualElement.PrePaintElement(IGraphics)
VisualElement.PostPaintElement(IGraphics)
VisualElement.GetScaledFont(Single)
VisualElement.GetScaledFont(Single, Font)
VisualElement.DefaultSize
VisualElement.ForeColor
VisualElement.BackColor
VisualElement.Font
VisualElement.CustomFont
VisualElement.CustomFontSize
VisualElement.CustomFontStyle
VisualElement.SmoothingMode
VisualElement.Opacity
VisualElement.FontChanged
RadElement.BoundsProperty
RadElement.BorderThicknessProperty
RadElement.PaddingProperty
RadElement.MarginProperty
RadElement.AlignmentProperty
RadElement.AutoSizeModeProperty
RadElement.FitToSizeModeProperty
RadElement.MinSizeProperty
RadElement.EnabledProperty
RadElement.CanFocusProperty
RadElement.IsItemFocusedProperty
RadElement.IsFocusedProperty
RadElement.IsMouseOverProperty
RadElement.IsMouseOverElementProperty
RadElement.IsMouseDownProperty
RadElement.ShouldPaintProperty
RadElement.VisibilityProperty
RadElement.NameProperty
RadElement.ClassProperty
RadElement.ClipDrawingProperty
RadElement.ShapeProperty
RadElement.MouseClickedEvent
RadElement.MouseDoubleClickedEvent
RadElement.MouseDownEvent
RadElement.MouseUpEvent
RadElement.MouseWheelEvent
RadElement.ChildElementAddedEvent
RadElement.ParentChangedEvent
RadElement.BoundsChangedEvent
RadElement.VisibilityChangingEvent
RadElement.EnabledChangedEvent
RadElement.ControlChangedEvent
RadElement.BackgroundShapeProperty
RadElement.BackgroundShapePaintModeProperty
RadElement.ContainsFocusProperty
RadElement.ContainsMouseProperty
RadElement.IsEditedInSpyProperty
RadElement.MaxSizeProperty
RadElement.RightToLeftProperty
RadElement.AutoSizeProperty
RadElement.ZIndexProperty
RadElement.AngleTransformProperty
RadElement.ScaleTransformProperty
RadElement.PositionOffsetProperty
RadElement.TagProperty
RadElement.StretchHorizontallyProperty
RadElement.StretchVerticallyProperty
RadElement.UseCompatibleTextRenderingProperty
RadElement.ClickModeProperty
RadElement.styleVersion
RadElement.paintSystemSkin
RadElement.TraceInvalidation
RadElement.SetPropertyValueCommand
RadElement.GetPropertyValueCommand
RadElement.RadElementLastStateKey
RadElement.StyleProperty
RadElement.CallCreateChildElements()
RadElement.SuspendReferenceUpdate()
RadElement.ResumeReferenceUpdate()
RadElement.CreateChildElements()
RadElement.OnLoad(Boolean)
RadElement.CallOnLoad(Boolean)
RadElement.LoadCore()
RadElement.OnUnload(ComponentThemableElementTree, Boolean)
RadElement.UnloadCore(ComponentThemableElementTree)
RadElement.OnUnloaded(ComponentThemableElementTree)
RadElement.OnElementTreeChanged(ComponentThemableElementTree)
RadElement.OnBeginDispose()
RadElement.SetParent(RadElement)
RadElement.OnParentChanged(RadElement)
RadElement.UpdateReferences(ComponentThemableElementTree, Boolean, Boolean)
RadElement.SetIsDesignMode(Boolean, Boolean)
RadElement.ChangeCollection(RadElement, ItemsChangeOperation)
RadElement.ResetLayout(Boolean)
RadElement.HasInvisibleAncestor()
RadElement.ResetLayoutCore()
RadElement.SetAllLocalValuesAsDefault(Boolean)
RadElement.InvalidateArrange()
RadElement.InvalidateArrange(Boolean)
RadElement.InvalidateMeasure()
RadElement.InvalidateMeasure(Boolean)
RadElement.UpdateLayout()
RadElement.SuspendLayout()
RadElement.SuspendLayout(Boolean)
RadElement.ResumeLayout(Boolean)
RadElement.ResumeLayout(Boolean, Boolean)
RadElement.Arrange(RectangleF)
RadElement.Measure(SizeF)
RadElement.SetBounds(Rectangle)
RadElement.SetBounds(Int32, Int32, Int32, Int32)
RadElement.GetBoundingRectangle(Size)
RadElement.GetBoundingRectangle(Rectangle)
RadElement.GetDesiredSize(Boolean)
RadElement.PointToScreen(Point)
RadElement.PointFromScreen(Point)
RadElement.PointToControl(Point)
RadElement.PointFromControl(Point)
RadElement.LocationToControl()
RadElement.RectangleToScreen(Rectangle)
RadElement.HitTest(Point)
RadElement.CallOnRenderSizeChanged(SizeChangedInfo)
RadElement.OnRenderSizeChanged(SizeChangedInfo)
RadElement.OnChildDesiredSizeChanged(RadElement)
RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)
RadElement.ArrangeCore(RectangleF)
RadElement.MeasureCore(SizeF)
RadElement.ShouldArrangeChild(RadElement)
RadElement.ShouldMeasureChild(RadElement)
RadElement.MeasureChildren(SizeF)
RadElement.GetArrangeRect(RectangleF)
RadElement.CanExecuteLayoutOperation()
RadElement.CalcLayoutOffset(PointF)
RadElement.LockBounds()
RadElement.UnlockBounds()
RadElement.SetBoundsCore(Rectangle)
RadElement.IsInValidState(Boolean)
RadElement.GetScrollingOffset()
RadElement.Invalidate()
RadElement.Invalidate(Boolean)
RadElement.GetInvalidateBounds()
RadElement.NotifyInvalidate(RadElement)
RadElement.OnTransformationInvalidated()
RadElement.InvalidateTransformations()
RadElement.PerformLayoutTransformation(RadMatrix)
RadElement.PerformPaintTransformation(RadMatrix)
RadElement.IsInGetAsBitmap()
RadElement.PaintElementSkin(IGraphics)
RadElement.Paint(IGraphics, Rectangle, Single, SizeF, Boolean)
RadElement.PaintBackgroundShape(IGraphics)
RadElement.PostPaintChildren(IGraphics, Rectangle, Single, SizeF)
RadElement.PaintChild(RadElement, IGraphics, Rectangle, Single, SizeF, Boolean)
RadElement.PaintShadow(RadElement, IGraphics)
RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)
RadElement.GetShadowRect(Rectangle, Int32)
RadElement.PaintFocusCues(IGraphics, Rectangle)
RadElement.GetAsBitmap(IGraphics, Brush, Single, SizeF)
RadElement.GetAsTransformedBitmap(IGraphics, Brush, Single, SizeF)
RadElement.GetAsTransformedBitmap(Brush, Single, SizeF)
RadElement.GetAsTransformedBitmap(Rectangle, Brush, Single, SizeF)
RadElement.GetAsBitmapEx(Brush, Single, SizeF)
RadElement.GetAsBitmap(Brush, Single, SizeF)
RadElement.IsInVisibleClipBounds(Rectangle)
RadElement.SetClipping(Graphics)
RadElement.ShouldPaintChild(RadElement)
RadElement.GetFocusRect()
RadElement.GetCurrentShape()
RadElement.GetPaintRectangle(Single, Single, SizeF)
RadElement.GetPatchedRect(RectangleF, Single, SizeF)
RadElement.GetXPVisualStyle()
RadElement.GetVistaVisualStyle()
RadElement.InitializeSystemSkinPaint()
RadElement.UnitializeSystemSkinPaint()
RadElement.GetSystemSkinPaintBounds()
RadElement.OnUseSystemSkinChanged(EventArgs)
RadElement.ShouldPaintSystemSkin()
RadElement.ComposeShouldPaintSystemSkin()
RadElement.ResetStyleSettings(Boolean)
RadElement.ResetStyleSettings(Boolean, RadProperty)
RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)
RadElement.AddBehavior(PropertyChangeBehavior)
RadElement.GetBehaviors()
RadElement.RemoveBehavior(PropertyChangeBehavior)
RadElement.ClearBehaviors()
RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)
RadElement.SetThemeApplied(Boolean)
RadElement.OnStyleChanged(RadPropertyChangedEventArgs)
RadElement.SuspendThemeRefresh()
RadElement.ResumeThemeRefresh()
RadElement.UnapplyStyle()
RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)
RadElement.RemoveBehaviors(PropertyChangeBehavior)
RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)
RadElement.GetThemeEffectiveType()
RadElement.GetChildrenByType(Type)
RadElement.GetChildrenByBaseType(Type)
RadElement.FindAncestorByThemeEffectiveType(Type)
RadElement.FindAncestor<T>()
RadElement.IsAncestorOf(RadElement)
RadElement.FindDescendant<T>()
RadElement.FindDescendant(Predicate<RadElement>)
RadElement.FindDescendant(Type)
RadElement.EnumDescendants(TreeTraversalMode)
RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)
RadElement.EnumDescendants(Filter, TreeTraversalMode)
RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)
RadElement.GetDescendants(Filter, TreeTraversalMode)
RadElement.GetAncestors(Filter)
RadElement.GetAncestors(Predicate<RadElement>)
RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)
RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)
RadElement.OnBubbleEvent(RadElement, RoutedEventArgs)
RadElement.IsEventInProcess(RaisedRoutedEvent)
RadElement.RegisterRoutedEvent(String, Type)
RadElement.GetRegisterRoutedEvent(String, Type)
RadElement.GetRegisterRoutedEvent(String, String)
RadElement.GetRegisterRoutedEvent(String)
RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)
RadElement.GetChildren(ChildrenListOptions)
RadElement.SendToBack()
RadElement.BringToFront()
RadElement.GetChildAt(Int32)
RadElement.IsChildOf(RadElement)
RadElement.Focus()
RadElement.Focus(Boolean)
RadElement.SetFocusPropertySafe(Boolean)
RadElement.SetElementFocused(Boolean)
RadElement.KillFocus()
RadElement.SetFocus()
RadElement.OnCLREventsRise(RoutedEventArgs)
RadElement.OnMouseHover(EventArgs)
RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)
RadElement.OnLostMouseCapture(MouseEventArgs)
RadElement.OnClick(EventArgs)
RadElement.OnDoubleClick(EventArgs)
RadElement.OnMouseEnter(EventArgs)
RadElement.PerformClick()
RadElement.OnMouseWheel(MouseEventArgs)
RadElement.DoMouseWheel(MouseEventArgs)
RadElement.DoClick(EventArgs)
RadElement.DoDoubleClick(EventArgs)
RadElement.CallDoMouseWheel(MouseEventArgs)
RadElement.IsInputKey(InputKeyEventArgs)
RadElement.MouseEventArgsFromControl(MouseEventArgs)
RadElement.DoMouseDown(MouseEventArgs)
RadElement.DoMouseUp(MouseEventArgs)
RadElement.DoMouseMove(MouseEventArgs)
RadElement.ShowScreenTip(ScreenTipNeededEventArgs)
RadElement.HideScreenTip()
RadElement.DoMouseHover(EventArgs)
RadElement.OnShowScreenTip(ComponentInputBehavior)
RadElement.RaiseClick(EventArgs)
RadElement.RaiseDoubleClick(EventArgs)
RadElement.RaiseMouseWheel(MouseEventArgs)
RadElement.UpdateContainsMouse()
RadElement.UpdateContainsFocus(Boolean)
RadElement.DoMouseEnter(EventArgs)
RadElement.DoMouseLeave(EventArgs)
RadElement.CallDoMouseDown(MouseEventArgs)
RadElement.CallDoMouseUp(MouseEventArgs)
RadElement.CallDoMouseMove(MouseEventArgs)
RadElement.CallDoMouseHover(EventArgs)
RadElement.CallDoMouseEnter(EventArgs)
RadElement.CallDoMouseLeave(EventArgs)
RadElement.CallDoClick(EventArgs)
RadElement.CallDoDoubleClick(EventArgs)
RadElement.GetValue(RadProperty)
RadElement.AddStylePropertySetting(IPropertySetting)
RadElement.SetValueCore(RadPropertyValue, Object, Object, ValueSource)
RadElement.NotifyChildren(RadPropertyChangedEventArgs)
RadElement.OnLocationChanged(RadPropertyChangedEventArgs)
RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)
RadElement.IsPropertyCancelable(RadPropertyMetadata)
RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)
RadElement.PerformDispose(Boolean)
RadElement.DisposeChildren()
RadElement.ResetUseCompatibleTextRendering()
RadElement.ShouldSerializeUseCompatibleTextRendering()
RadElement.IStylableNode.GetThemeEffectiveType()
RadElement.IStylableNode.ApplySettings(PropertySettingGroup)
RadElement.GetStylableChildrenHierarchy()
RadElement.GetStylableChildren()
RadElement.ResetStyleVersion()
RadElement.GetBorderThickness(BorderPrimitive)
RadElement.DpiScaleChanged(SizeF)
RadElement.ElementState
RadElement.LayoutManager
RadElement.DesiredSize
RadElement.IsLayoutSuspended
RadElement.BoundingRectangle
RadElement.ControlBoundingRectangle
RadElement.BypassLayoutPolicies
RadElement.IsArrangeValid
RadElement.IsMeasureValid
RadElement.PreviousArrangeRect
RadElement.PreviousConstraint
RadElement.TreeLevel
RadElement.Transform
RadElement.TotalTransform
RadElement.ShouldPaintUsingParentShape
RadElement.UseSystemSkin
RadElement.VsbVisible
RadElement.PropagateStyleToChildren
RadElement.ThemeEffectiveType
RadElement.ElementTree
RadElement.Children
RadElement.ChildrenHierarchy
RadElement.Parent
RadElement.RoutedEventBehaviors
RadElement.LayoutableChildrenCount
RadElement.ContainsFocus
RadElement.NotifyParentOnMouseInput
RadElement.IsAbleToRespondToMouseEvents
RadElement.AutoSize
RadElement.Bounds
RadElement.Location
RadElement.Size
RadElement.BorderThickness
RadElement.Padding
RadElement.Margin
RadElement.Alignment
RadElement.AutoSizeMode
RadElement.FitToSizeMode
RadElement.Enabled
RadElement.IsFocused
RadElement.IsMouseOver
RadElement.IsMouseOverElement
RadElement.IsMouseDown
RadElement.InvalidateChildrenOnChildChanged
RadElement.Visibility
RadElement.IsElementVisible
RadElement.Name
RadElement.Class
RadElement.ClipDrawing
RadElement.Shape
RadElement.MinSize
RadElement.MaxSize
RadElement.ZIndex
RadElement.RightToLeft
RadElement.UseCompatibleTextRendering
RadElement.BackgroundShape
RadElement.BackgroundShapePaintMode
RadElement.ContainsMouse
RadElement.Capture
RadElement.ScaleTransform
RadElement.AngleTransform
RadElement.PositionOffset
RadElement.SerializeElement
RadElement.SerializeChildren
RadElement.RenderingMaxFramerate
RadElement.IsThemeApplied
RadElement.ShouldApplyTheme
RadElement.UseCenteredAngleTransform
RadElement.Tag
RadElement.StretchHorizontally
RadElement.StretchVertically
RadElement.ClickMode
RadElement.DoubleClickEnabled
RadElement.CaptureOnMouseDown
RadElement.IsFocusable
RadElement.IsItemHovered
RadElement.IStylableNode.Parent
RadElement.IStylableNode.ChildrenHierarchy
RadElement.IStylableNode.Children
RadElement.IStylableNode.Class
RadElement.Style
RadElement.AutoToolTip
RadElement.ScreenTip
RadElement.AutoNumberKeyTip
RadElement.MeasureIsDirty
RadElement.ArrangeIsDirty
RadElement.NeverMeasured
RadElement.NeverArranged
RadElement.ArrangeInProgress
RadElement.MeasureInProgress
RadElement.ShouldPaintChildren
RadElement.InvalidateMeasureOnRemove
RadElement.HideFromElementHierarchyEditor
RadElement.DpiScaleFactor
RadElement.LayoutUpdated
RadElement.ElementPainted
RadElement.MouseHover
RadElement.MouseMove
RadElement.MouseDown
RadElement.MouseUp
RadElement.Click
RadElement.DoubleClick
RadElement.MouseEnter
RadElement.MouseWheel
RadElement.EnabledChanged
RadElement.MouseLeave
RadElement.ChildrenChanged
RadElement.LostMouseCapture
RadObject.BindingContextProperty
RadObject.RadType
RadObject.ClearPropertyStore()
RadObject.SuspendPropertyNotifications()
RadObject.ResumePropertyNotifications()
RadObject.GetPropertyValue(RadProperty)
RadObject.SetDefaultValueOverride(RadProperty, Object)
RadObject.SetValueAtDesignTime(RadProperty, Object)
RadObject.SetValue(RadProperty, Object)
RadObject.ResetValue(RadProperty)
RadObject.ResetLocalValue(RadProperty)
RadObject.ResetValue(RadProperty, ValueResetFlags)
RadObject.UpdateValue(RadProperty)
RadObject.GetValueSource(RadProperty)
RadObject.GetRegisteredRadProperty(String)
RadObject.UpdateValueCore(RadPropertyValue)
RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)
RadObject.GetDefaultValue(RadPropertyValue, Object)
RadObject.CoerceValue(RadPropertyValue, Object)
RadObject.ShouldSerializeProperty(RadProperty)
RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)
RadObject.UnbindProperty(RadProperty)
RadObject.RemoveStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(RadProperty)
RadObject.GetInheritedValue(RadProperty)
RadObject.OnNotifyPropertyChanged(String)
RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)
RadObject.PropertyValues
RadObject.PropertyFilter
RadObject.RadObjectType
RadObject.BindingContext
RadObject.PropertyChanged
RadObject.RadPropertyChanged
RadObject.RadPropertyChanging
RadObject.ShouldSerializePropertyHandler
DisposableObject.GetBitState(Int64)
DisposableObject.SetBitState(Int64, Boolean)
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.DisposeUnmanagedResources()
DisposableObject.BitState
DisposableObject.Events
DisposableObject.IsDisposing
DisposableObject.IsDisposed
DisposableObject.Disposed
DisposableObject.Disposing
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public class LightVisualElement : UIItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider

Constructors

LightVisualElement()

Declaration
public LightVisualElement()

Fields

BackColor2Property

Declaration
public static RadProperty BackColor2Property
Field Value
RadProperty

BackColor3Property

Declaration
public static RadProperty BackColor3Property
Field Value
RadProperty

BackColor4Property

Declaration
public static RadProperty BackColor4Property
Field Value
RadProperty

BackgroundImageLayoutProperty

Declaration
public static RadProperty BackgroundImageLayoutProperty
Field Value
RadProperty

BackgroundImageProperty

Declaration
public static RadProperty BackgroundImageProperty
Field Value
RadProperty

BorderBottomColorProperty

Declaration
public static RadProperty BorderBottomColorProperty
Field Value
RadProperty

BorderBottomShadowColorProperty

Declaration
public static RadProperty BorderBottomShadowColorProperty
Field Value
RadProperty

BorderBottomWidthProperty

Declaration
public static RadProperty BorderBottomWidthProperty
Field Value
RadProperty

BorderBoxStyleProperty

Declaration
public static RadProperty BorderBoxStyleProperty
Field Value
RadProperty

BorderColor2Property

Declaration
public static RadProperty BorderColor2Property
Field Value
RadProperty

BorderColor3Property

Declaration
public static RadProperty BorderColor3Property
Field Value
RadProperty

BorderColor4Property

Declaration
public static RadProperty BorderColor4Property
Field Value
RadProperty

BorderColorProperty

Declaration
public static RadProperty BorderColorProperty
Field Value
RadProperty

BorderDashPatternProperty

Declaration
public static RadProperty BorderDashPatternProperty
Field Value
RadProperty

BorderDashStyleProperty

Declaration
public static RadProperty BorderDashStyleProperty
Field Value
RadProperty

BorderDrawModeProperty

Declaration
public static RadProperty BorderDrawModeProperty
Field Value
RadProperty

BorderGradientAngleProperty

Declaration
public static RadProperty BorderGradientAngleProperty
Field Value
RadProperty

BorderGradientStyleProperty

Declaration
public static RadProperty BorderGradientStyleProperty
Field Value
RadProperty

BorderInnerColor2Property

Declaration
public static RadProperty BorderInnerColor2Property
Field Value
RadProperty

BorderInnerColor3Property

Declaration
public static RadProperty BorderInnerColor3Property
Field Value
RadProperty

BorderInnerColor4Property

Declaration
public static RadProperty BorderInnerColor4Property
Field Value
RadProperty

BorderInnerColorProperty

Declaration
public static RadProperty BorderInnerColorProperty
Field Value
RadProperty

BorderLeftColorProperty

Declaration
public static RadProperty BorderLeftColorProperty
Field Value
RadProperty

BorderLeftShadowColorProperty

Declaration
public static RadProperty BorderLeftShadowColorProperty
Field Value
RadProperty

BorderLeftWidthProperty

Declaration
public static RadProperty BorderLeftWidthProperty
Field Value
RadProperty

BorderRightColorProperty

Declaration
public static RadProperty BorderRightColorProperty
Field Value
RadProperty

BorderRightShadowColorProperty

Declaration
public static RadProperty BorderRightShadowColorProperty
Field Value
RadProperty

BorderRightWidthProperty

Declaration
public static RadProperty BorderRightWidthProperty
Field Value
RadProperty

BorderTopColorProperty

Declaration
public static RadProperty BorderTopColorProperty
Field Value
RadProperty

BorderTopShadowColorProperty

Declaration
public static RadProperty BorderTopShadowColorProperty
Field Value
RadProperty

BorderTopWidthProperty

Declaration
public static RadProperty BorderTopWidthProperty
Field Value
RadProperty

BorderWidthProperty

Declaration
public static RadProperty BorderWidthProperty
Field Value
RadProperty

ClipTextProperty

Declaration
public static RadProperty ClipTextProperty
Field Value
RadProperty

DisabledTextRenderingHintProperty

Declaration
public static RadProperty DisabledTextRenderingHintProperty
Field Value
RadProperty

DrawBackgroundImageProperty

Declaration
public static RadProperty DrawBackgroundImageProperty
Field Value
RadProperty

DrawBorderProperty

Declaration
public static RadProperty DrawBorderProperty
Field Value
RadProperty

DrawFillProperty

Declaration
public static RadProperty DrawFillProperty
Field Value
RadProperty

DrawImageProperty

Declaration
public static RadProperty DrawImageProperty
Field Value
RadProperty

DrawTextProperty

Declaration
public static RadProperty DrawTextProperty
Field Value
RadProperty

EnableImageTransparencyProperty

Declaration
public static RadProperty EnableImageTransparencyProperty
Field Value
RadProperty

GradientAngleProperty

Declaration
public static RadProperty GradientAngleProperty
Field Value
RadProperty

GradientPercentage2Property

Declaration
public static RadProperty GradientPercentage2Property
Field Value
RadProperty

GradientPercentageProperty

Declaration
public static RadProperty GradientPercentageProperty
Field Value
RadProperty

GradientStyleProperty

Declaration
public static RadProperty GradientStyleProperty
Field Value
RadProperty

HorizontalLineColorProperty

Declaration
public static RadProperty HorizontalLineColorProperty
Field Value
RadProperty

HorizontalLineWidthProperty

Declaration
public static RadProperty HorizontalLineWidthProperty
Field Value
RadProperty

ImageAlignmentProperty

Declaration
public static RadProperty ImageAlignmentProperty
Field Value
RadProperty

ImageIndexProperty

Declaration
public static RadProperty ImageIndexProperty
Field Value
RadProperty

ImageKeyProperty

Declaration
public static RadProperty ImageKeyProperty
Field Value
RadProperty

ImageLayoutProperty

Declaration
public static RadProperty ImageLayoutProperty
Field Value
RadProperty

ImageOpacityProperty

Declaration
public static RadProperty ImageOpacityProperty
Field Value
RadProperty

ImageProperty

Declaration
public static RadProperty ImageProperty
Field Value
RadProperty

ImageTransparentColorProperty

Declaration
public static RadProperty ImageTransparentColorProperty
Field Value
RadProperty

NumberOfColorsProperty

Declaration
public static RadProperty NumberOfColorsProperty
Field Value
RadProperty

ShowHorizontalLineProperty

Declaration
public static RadProperty ShowHorizontalLineProperty
Field Value
RadProperty

SvgImageProperty

Declaration
public static RadProperty SvgImageProperty
Field Value
RadProperty

TextAlignmentProperty

Declaration
public static RadProperty TextAlignmentProperty
Field Value
RadProperty

TextImageRelationProperty

Declaration
public static RadProperty TextImageRelationProperty
Field Value
RadProperty

TextRenderingHintProperty

Declaration
public static RadProperty TextRenderingHintProperty
Field Value
RadProperty

TextWrapProperty

Declaration
public static RadProperty TextWrapProperty
Field Value
RadProperty

Properties

AutoEllipsis

Gets or sets a value indicating whether automatic text ellipsis will be applied when text cannot fit within the available space.

Declaration
public bool AutoEllipsis { get; set; }
Property Value
System.Boolean

Implements
ITextProvider.AutoEllipsis

BackColor2

Gets or sets the second background color used in gradient fill effects for multi-color gradient styles.

Declaration
[RadPropertyDefaultValue("BackColor2", typeof(LightVisualElement))]
public override Color BackColor2 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BackColor2

BackColor3

Gets or sets the third background color used in gradient fill effects for multi-color gradient styles.

Declaration
[RadPropertyDefaultValue("BackColor3", typeof(LightVisualElement))]
public override Color BackColor3 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BackColor3

BackColor4

Gets or sets the fourth background color used in gradient fill effects for multi-color gradient styles.

Declaration
[RadPropertyDefaultValue("BackColor4", typeof(LightVisualElement))]
public override Color BackColor4 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BackColor4

BackgroundImage

Gets or sets the background image displayed behind the element's content. This image is rendered according to the BackgroundImageLayout property.

Declaration
[RadPropertyDefaultValue("BackgroundImage", typeof(LightVisualElement))]
public virtual Image BackgroundImage { get; set; }
Property Value
System.Drawing.Image

BackgroundImageLayout

Gets or sets the layout mode for the background image, determining how it is positioned and scaled within the element bounds.

Declaration
public virtual ImageLayout BackgroundImageLayout { get; set; }
Property Value
System.Windows.Forms.ImageLayout

BorderBottomColor

Gets or sets the color of the bottom border when using FourBorders style.

Declaration
[RadPropertyDefaultValue("BorderBottomColor", typeof(LightVisualElement))]
public override Color BorderBottomColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderBottomColor

BorderBottomShadowColor

Gets or sets the shadow color for the bottom border, providing a visual depth effect when rendered.

Declaration
[RadPropertyDefaultValue("BorderBottomShadowColor", typeof(LightVisualElement))]
public override Color BorderBottomShadowColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderBottomShadowColor

BorderBottomWidth

Gets or sets the width of the bottom border when using FourBorders style. This value is automatically scaled based on the current DPI settings of the display.

Declaration
[RadPropertyDefaultValue("BorderBottomWidth", typeof(LightVisualElement))]
public override float BorderBottomWidth { get; set; }
Property Value
System.Single

Overrides
UIItemBase.BorderBottomWidth

BorderBoxStyle

Gets or sets the border drawing style that determines how border appearance is configured. SingleBorder applies uniform appearance to all sides, while FourBorders allows individual configuration of each side's color, width, and shadow properties.

Declaration
[RadPropertyDefaultValue("BorderBoxStyle", typeof(LightVisualElement))]
public override BorderBoxStyle BorderBoxStyle { get; set; }
Property Value
BorderBoxStyle

Overrides
UIItemBase.BorderBoxStyle

BorderColor

Gets or sets the primary border color used for solid borders or as the first color in gradient border effects.

Declaration
[RadPropertyDefaultValue("BorderColor", typeof(LightVisualElement))]
public override Color BorderColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderColor

BorderColor2

Gets or sets the second color used in gradient border effects for radial, glass, office glass, gel, and vista gradient styles.

Declaration
[RadPropertyDefaultValue("BorderColor2", typeof(LightVisualElement))]
public override Color BorderColor2 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderColor2

BorderColor3

Gets or sets the third color used in gradient border effects for radial, glass, office glass, and vista gradient styles.

Declaration
[RadPropertyDefaultValue("BorderColor3", typeof(LightVisualElement))]
public override Color BorderColor3 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderColor3

BorderColor4

Gets or sets the fourth color used in gradient border effects for radial, glass, office glass, and vista gradient styles.

Declaration
[RadPropertyDefaultValue("BorderColor4", typeof(LightVisualElement))]
public override Color BorderColor4 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderColor4

BorderDashPattern

Gets or sets the custom dash pattern array for border rendering when using custom dashed line styles.

Declaration
[RadPropertyDefaultValue("BorderDashPattern", typeof(LightVisualElement))]
public override float[] BorderDashPattern { get; set; }
Property Value
System.Single[]

Overrides
UIItemBase.BorderDashPattern

BorderDashStyle

Gets or sets the style of dashed lines used for border rendering when dashed border effects are applied.

Declaration
[RadPropertyDefaultValue("BorderDashStyle", typeof(LightVisualElement))]
public override DashStyle BorderDashStyle { get; set; }
Property Value
System.Drawing.Drawing2D.DashStyle

Overrides
UIItemBase.BorderDashStyle

BorderDrawMode

Gets or sets the drawing order for border lines when using FourBorders style. This property determines which border lines are drawn on top when borders overlap at corners.

Declaration
[RadPropertyDefaultValue("BorderDrawMode", typeof(LightVisualElement))]
public override BorderDrawModes BorderDrawMode { get; set; }
Property Value
BorderDrawModes

Overrides
UIItemBase.BorderDrawMode

BorderGradientAngle

Gets or sets the angle in degrees for linear gradient borders. This property determines the direction of the gradient effect when BorderGradientStyle is set to linear gradient.

Declaration
[RadPropertyDefaultValue("BorderGradientAngle", typeof(LightVisualElement))]
public override float BorderGradientAngle { get; set; }
Property Value
System.Single

Overrides
UIItemBase.BorderGradientAngle

BorderGradientStyle

Gets or sets the gradient style for border rendering. Available styles include solid, linear, radial, glass, office glass, gel, and vista. Each style provides different visual effects for the border appearance.

Declaration
[RadPropertyDefaultValue("BorderGradientStyle", typeof(LightVisualElement))]
public override GradientStyles BorderGradientStyle { get; set; }
Property Value
GradientStyles

Overrides
UIItemBase.BorderGradientStyle

BorderInnerColor

Gets or sets the primary inner border color used in outer-inner border configurations for gradient border effects.

Declaration
[RadPropertyDefaultValue("BorderInnerColor", typeof(LightVisualElement))]
public override Color BorderInnerColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderInnerColor

BorderInnerColor2

Gets or sets the second inner border color used in outer-inner border configurations for gradient border effects.

Declaration
[RadPropertyDefaultValue("BorderInnerColor2", typeof(LightVisualElement))]
public override Color BorderInnerColor2 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderInnerColor2

BorderInnerColor3

Gets or sets the third inner border color used in outer-inner border configurations for gradient border effects.

Declaration
[RadPropertyDefaultValue("BorderInnerColor3", typeof(LightVisualElement))]
public override Color BorderInnerColor3 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderInnerColor3

BorderInnerColor4

Gets or sets the fourth inner border color used in outer-inner border configurations for gradient border effects.

Declaration
[RadPropertyDefaultValue("BorderInnerColor4", typeof(LightVisualElement))]
public override Color BorderInnerColor4 { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderInnerColor4

BorderLeftColor

Gets or sets the color of the left border when using FourBorders style.

Declaration
[RadPropertyDefaultValue("BorderLeftColor", typeof(LightVisualElement))]
public override Color BorderLeftColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderLeftColor

BorderLeftShadowColor

Gets or sets the shadow color for the left border, providing a visual depth effect when rendered.

Declaration
[RadPropertyDefaultValue("BorderLeftShadowColor", typeof(LightVisualElement))]
public override Color BorderLeftShadowColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderLeftShadowColor

BorderLeftWidth

Gets or sets the width of the left border when using FourBorders style. This value is automatically scaled based on the current DPI settings of the display.

Declaration
[RadPropertyDefaultValue("BorderLeftWidth", typeof(LightVisualElement))]
public override float BorderLeftWidth { get; set; }
Property Value
System.Single

Overrides
UIItemBase.BorderLeftWidth

BorderRightColor

Gets or sets the color of the right border when using FourBorders style.

Declaration
[RadPropertyDefaultValue("BorderRightColor", typeof(LightVisualElement))]
public override Color BorderRightColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderRightColor

BorderRightShadowColor

Gets or sets the shadow color for the right border, providing a visual depth effect when rendered.

Declaration
[RadPropertyDefaultValue("BorderRightShadowColor", typeof(LightVisualElement))]
public override Color BorderRightShadowColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderRightShadowColor

BorderRightWidth

Gets or sets the width of the right border when using FourBorders style. This value is automatically scaled based on the current DPI settings of the display.

Declaration
[RadPropertyDefaultValue("BorderRightWidth", typeof(LightVisualElement))]
public override float BorderRightWidth { get; set; }
Property Value
System.Single

Overrides
UIItemBase.BorderRightWidth

BorderTopColor

Gets or sets the color of the top border when using FourBorders style.

Declaration
[RadPropertyDefaultValue("BorderTopColor", typeof(LightVisualElement))]
public override Color BorderTopColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderTopColor

BorderTopShadowColor

Gets or sets the shadow color for the top border, providing a visual depth effect when rendered.

Declaration
[RadPropertyDefaultValue("BorderTopShadowColor", typeof(LightVisualElement))]
public override Color BorderTopShadowColor { get; set; }
Property Value
System.Drawing.Color

Overrides
UIItemBase.BorderTopShadowColor

BorderTopWidth

Gets or sets the width of the top border when using FourBorders style. This value is automatically scaled based on the current DPI settings of the display.

Declaration
[RadPropertyDefaultValue("BorderTopWidth", typeof(LightVisualElement))]
public override float BorderTopWidth { get; set; }
Property Value
System.Single

Overrides
UIItemBase.BorderTopWidth

BorderWidth

Gets or sets the uniform width of all border sides when using SingleBorder style. This value is automatically scaled based on the current DPI settings of the display.

Declaration
[RadPropertyDefaultValue("BorderWidth", typeof(LightVisualElement))]
public override float BorderWidth { get; set; }
Property Value
System.Single

Overrides
UIItemBase.BorderWidth

CanFocus

Declaration
public override bool CanFocus { get; set; }
Property Value
System.Boolean

Overrides
RadElement.CanFocus

CheckDrawBorderOnMeasure

This property is not relevant for this class.

Declaration
public virtual bool CheckDrawBorderOnMeasure { get; set; }
Property Value
System.Boolean

ClipText

Gets or sets a value indicating whether text should be clipped to the calculated text painting rectangle boundaries.

Declaration
[RadPropertyDefaultValue("ClipText", typeof(LightVisualElement))]
public bool ClipText { get; set; }
Property Value
System.Boolean

DisabledImageOpacity

Gets or sets the opacity level applied to images when they are in a disabled state.

Declaration
public virtual double DisabledImageOpacity { get; set; }
Property Value
System.Double

Remarks

If the value is set to a number outside the range 0.0 to 1.0, the property will use the value of the ImageOpacity property instead. The opacity value must be between 0.0 (fully transparent) and 1.0 (fully opaque).

DisabledTextRenderingHint

Gets or sets the text rendering hint used specifically when this element is in a disabled state. This allows for different text rendering quality when the element is disabled versus enabled.

Declaration
[RadPropertyDefaultValue("TextRenderingHint", typeof(VisualElement))]
public virtual TextRenderingHint DisabledTextRenderingHint { get; set; }
Property Value
System.Drawing.Text.TextRenderingHint

DisableHTMLRendering

Gets or sets a value indicating whether HTML formatting in text content should be disabled, forcing plain text rendering.

Declaration
public bool DisableHTMLRendering { get; set; }
Property Value
System.Boolean

DrawBackgroundImage

Gets or sets a value indicating whether the element should render its background image during the paint operation. This property controls the visibility of the image specified by the BackgroundImage property.

Declaration
[RadPropertyDefaultValue("DrawBackgroundImage", typeof(LightVisualElement))]
public bool DrawBackgroundImage { get; set; }
Property Value
System.Boolean

DrawBorder

Gets or sets a value indicating whether the element should render its border during the paint operation. This property controls the visibility of all border styles including single borders, four borders, and outer-inner borders.

Declaration
[RadPropertyDefaultValue("DrawBorder", typeof(LightVisualElement))]
public override bool DrawBorder { get; set; }
Property Value
System.Boolean

Overrides
UIItemBase.DrawBorder

DrawFill

Gets or sets a value indicating whether the element should render its background fill during the paint operation. This property controls the visibility of gradient fills, solid colors, and other background painting effects.

Declaration
[RadPropertyDefaultValue("DrawFill", typeof(LightVisualElement))]
public override bool DrawFill { get; set; }
Property Value
System.Boolean

Overrides
UIItemBase.DrawFill

DrawImage

Gets or sets a value indicating whether the element should render its main image during the paint operation. This property controls the visibility of the image specified by the Image property.

Declaration
[RadPropertyDefaultValue("DrawImage", typeof(LightVisualElement))]
public bool DrawImage { get; set; }
Property Value
System.Boolean

DrawText

Gets or sets a value indicating whether the element should render its text content during the paint operation. When set to false, the text will not be visible even if the text property is set.

Declaration
[RadPropertyDefaultValue("DrawText", typeof(LightVisualElement))]
public virtual bool DrawText { get; set; }
Property Value
System.Boolean

EnableImageTransparency

Gets or sets a value indicating whether image transparency effects are enabled for this element.

Declaration
[RadPropertyDefaultValue("EnableImageTransparency", typeof(LightVisualElement))]
public bool EnableImageTransparency { get; set; }
Property Value
System.Boolean

GradientAngle

Gets or sets the angle in degrees for linear gradient background effects. This determines the direction of the gradient.

Declaration
[RadPropertyDefaultValue("GradientAngle", typeof(LightVisualElement))]
public override float GradientAngle { get; set; }
Property Value
System.Single

Overrides
UIItemBase.GradientAngle

GradientPercentage

Gets or sets the first gradient percentage that controls the distribution of colors in gradient background effects.

Declaration
[RadPropertyDefaultValue("GradientPercentage", typeof(LightVisualElement))]
public override float GradientPercentage { get; set; }
Property Value
System.Single

Overrides
UIItemBase.GradientPercentage

GradientPercentage2

Gets or sets the second gradient percentage that controls the distribution of colors in gradient background effects.

Declaration
[RadPropertyDefaultValue("GradientPercentage2", typeof(LightVisualElement))]
public override float GradientPercentage2 { get; set; }
Property Value
System.Single

Overrides
UIItemBase.GradientPercentage2

GradientStyle

Gets or sets the gradient style for background fill rendering. Available styles include solid, linear, radial, glass, office glass, gel, and vista.

Declaration
[RadPropertyDefaultValue("GradientStyle", typeof(LightVisualElement))]
public override GradientStyles GradientStyle { get; set; }
Property Value
GradientStyles

Overrides
UIItemBase.GradientStyle

HorizontalLineColor

Gets or sets the color of the horizontal line when ShowHorizontalLine is enabled.

Declaration
[RadPropertyDefaultValue("HorizontalLineColor", typeof(LightVisualElement))]
public virtual Color HorizontalLineColor { get; set; }
Property Value
System.Drawing.Color

HorizontalLineWidth

Gets or sets the width in pixels of the horizontal line when ShowHorizontalLine is enabled. This value is automatically scaled based on current DPI settings.

Declaration
[RadPropertyDefaultValue("HorizontalLineWidth", typeof(LightVisualElement))]
public virtual int HorizontalLineWidth { get; set; }
Property Value
System.Int32

Image

Gets or sets the main image displayed on the element. The image position is controlled by ImageAlignment and TextImageRelation properties.

Declaration
[RadPropertyDefaultValue("Image", typeof(LightVisualElement))]
public virtual Image Image { get; set; }
Property Value
System.Drawing.Image

Implements
IImageElement.Image

ImageAlignment

Gets or sets the alignment of the image within the element bounds, controlling both horizontal and vertical positioning.

Declaration
public virtual ContentAlignment ImageAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment

ImageDrawType

Gets or sets the type of image to draw, determining whether to render bitmap images or SVG images based on availability and configuration. Determines whether the Image or SvgImage property will be painted. Note that if SvgImage == null, this property will always return "ImageDrawType.Image".

Declaration
public virtual ImageDrawType ImageDrawType { get; set; }
Property Value
ImageDrawType

ImageIndex

Gets or sets the index of the image from the associated Telerik.WinControls.UI.LightVisualElement.ImageList to display on this element.

Declaration
[RadPropertyDefaultValue("ImageIndex", typeof(LightVisualElement))]
public virtual int ImageIndex { get; set; }
Property Value
System.Int32

Implements
IImageElement.ImageIndex

ImageKey

Gets or sets the key of the image from the associated Telerik.WinControls.UI.LightVisualElement.ImageList to display on this element.

Declaration
[RadPropertyDefaultValue("ImageKey", typeof(LightVisualElement))]
public virtual string ImageKey { get; set; }
Property Value
System.String

Implements
IImageElement.ImageKey

ImageLayout

Gets or sets the layout mode for the main image, determining how it is positioned and scaled within the element bounds.

Declaration
public virtual ImageLayout ImageLayout { get; set; }
Property Value
System.Windows.Forms.ImageLayout

ImageOpacity

Gets or sets the opacity level for image rendering, where 1.0 represents fully opaque and 0.0 represents fully transparent.

Declaration
[RadPropertyDefaultValue("ImageOpacity", typeof(LightVisualElement))]
public virtual double ImageOpacity { get; set; }
Property Value
System.Double

ImageTransparentColor

Gets or sets the color that will be treated as transparent when rendering images on this element.

Declaration
[RadPropertyDefaultValue("ImageTransparentColor", typeof(LightVisualElement))]
public Color ImageTransparentColor { get; set; }
Property Value
System.Drawing.Color

Layout

Gets the layout manager that controls the positioning and sizing of text and image content within this element.

Declaration
public virtual LayoutManagerPart Layout { get; }
Property Value
LayoutManagerPart

MeasureTrailingSpaces

Gets or sets a value indicating whether trailing spaces in text should be included in text measurement calculations.

Declaration
public bool MeasureTrailingSpaces { get; set; }
Property Value
System.Boolean

Implements
ITextProvider.MeasureTrailingSpaces

NumberOfColors

Gets or sets the number of colors used in gradient background effects. This determines how many color properties are utilized.

Declaration
[RadPropertyDefaultValue("NumberOfColors", typeof(LightVisualElement))]
public override int NumberOfColors { get; set; }
Property Value
System.Int32

Overrides
UIItemBase.NumberOfColors

Shadow

This property is not relevant for this class.

Declaration
public ShadowSettings Shadow { get; set; }
Property Value
ShadowSettings

Implements
ITextProvider.Shadow

ShouldPaint

Declaration
public override bool ShouldPaint { get; set; }
Property Value
System.Boolean

Overrides
RadElement.ShouldPaint

ShowHorizontalLine

Gets or sets a value indicating whether a horizontal line should be rendered across the element.

Declaration
[RadPropertyDefaultValue("ShowHorizontalLine", typeof(LightVisualElement))]
public virtual bool ShowHorizontalLine { get; set; }
Property Value
System.Boolean

ShowKeyboardCues

Gets or sets a value indicating whether keyboard access cues (underlines for mnemonics) should be displayed for this element.

Declaration
public virtual bool ShowKeyboardCues { get; set; }
Property Value
System.Boolean

Implements
ITextProvider.ShowKeyboardCues

SvgImage

Gets or sets the SVG image to be displayed on this element as a scalable vector graphic.

Declaration
public virtual RadSvgImage SvgImage { get; set; }
Property Value
RadSvgImage

SvgImageXml

Gets or sets the Svg Image as string.

Declaration
[VsbBrowsable(false)]
public virtual string SvgImageXml { get; set; }
Property Value
System.String

TextAlignment

Gets or sets the alignment of text within the element bounds, controlling both horizontal and vertical positioning.

Declaration
public virtual ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment

Implements
ITextProvider.TextAlignment

TextBlock

This property is not relevant for this class.

Declaration
public virtual FormattedTextBlock TextBlock { get; set; }
Property Value
FormattedTextBlock

TextImageRelation

Gets or sets the spatial relationship between text and image content. This determines how text and image are positioned relative to each other.

Declaration
[RadPropertyDefaultValue("TextImageRelation", typeof(LightVisualElement))]
public TextImageRelation TextImageRelation { get; set; }
Property Value
System.Windows.Forms.TextImageRelation

TextParams

This property is not relevant for this class.

Declaration
public TextParams TextParams { get; }
Property Value
TextParams

TextRenderingHint

Gets or sets the text rendering hint that determines the quality and anti-aliasing mode used when rendering text on this element. This property affects the visual appearance and readability of text displayed by the element.

Declaration
[RadPropertyDefaultValue("TextRenderingHint", typeof(VisualElement))]
public virtual TextRenderingHint TextRenderingHint { get; set; }
Property Value
System.Drawing.Text.TextRenderingHint

TextWrap

Gets or sets a value indicating whether text will automatically wrap to multiple lines when it exceeds the element's width.

Declaration
[RadPropertyDefaultValue("TextWrap", typeof(LightVisualElement))]
public virtual bool TextWrap { get; set; }
Property Value
System.Boolean

Implements
ITextProvider.TextWrap

UseMnemonic

Gets or sets a value indicating whether ampersand characters (&) in text will be treated as mnemonic access key indicators.

Declaration
public virtual bool UseMnemonic { get; set; }
Property Value
System.Boolean

Implements
ITextProvider.UseMnemonic

Methods

AnimateImage(Image, Boolean)

Declaration
protected virtual void AnimateImage(Image image, bool isBackgroundImage)
Parameters
System.Drawing.Image image

System.Boolean isBackgroundImage

ArrangeElement(RadElement, SizeF)

Arranges a single child element according to its fit-to-size mode within the allocated space.

Declaration
protected virtual void ArrangeElement(RadElement element, SizeF finalSize)
Parameters
RadElement element

The child element to arrange.

System.Drawing.SizeF finalSize

The final size available for arranging the element.

ArrangeOverride(SizeF)

Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.

Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF finalSize

The final area within the parent that this element should use to arrange itself and its children.

Returns
System.Drawing.SizeF

The actual size used by the element after arrangement.

Overrides
RadElement.ArrangeOverride(SizeF)

CalculateDesiredSize(SizeF, SizeF, SizeF)

Calculates the final desired size by combining the element's content size with child elements' size requirements.

Declaration
protected virtual SizeF CalculateDesiredSize(SizeF availableSize, SizeF desiredSize, SizeF elementsDesiredSize)
Parameters
System.Drawing.SizeF availableSize

The available space that a parent element can allocate.

System.Drawing.SizeF desiredSize

The desired size calculated from content and layout requirements.

System.Drawing.SizeF elementsDesiredSize

The desired size calculated from child elements.

Returns
System.Drawing.SizeF

The final desired size taking into account all size constraints.

ClipImage(Image, Rectangle, Size)

Clips an image to fit within the specified rectangle and size constraints, creating a new image if necessary.

Declaration
protected virtual Image ClipImage(Image image, Rectangle imageRectange, Size size)
Parameters
System.Drawing.Image image

The source image to clip.

System.Drawing.Rectangle imageRectange

The rectangle defining the clipping area within the source image.

System.Drawing.Size size

The target size for the clipped image.

Returns
System.Drawing.Image

The clipped image, or the original image if no clipping is needed.

CreateTextParams()

Declaration
protected virtual TextParams CreateTextParams()
Returns
TextParams

DisposeManagedResources()

Disposes of managed resources including cached images and SVG images when the element is being disposed.

Declaration
protected override void DisposeManagedResources()
Overrides
UIItemBase.DisposeManagedResources()

DrawHorizontalLine(IGraphics)

Draws a horizontal line across the element when text is present, positioning the line based on text alignment and size.

Declaration
protected virtual void DrawHorizontalLine(IGraphics graphics)
Parameters
IGraphics graphics

The graphics context used for rendering the horizontal line.

DrawHorizontalLineWithoutText(IGraphics)

Draws a horizontal line across the element when no text is present and ShowHorizontalLine is enabled.

Declaration
protected virtual void DrawHorizontalLineWithoutText(IGraphics graphics)
Parameters
IGraphics graphics

The graphics context used for rendering the horizontal line.

GetAsBitmapEx(Color, Single, SizeF)

Declaration
public override Bitmap GetAsBitmapEx(Color backColor, float totalAngle, SizeF totalScale)
Parameters
System.Drawing.Color backColor

System.Single totalAngle

System.Drawing.SizeF totalScale

Returns
System.Drawing.Bitmap

Overrides
RadElement.GetAsBitmapEx(Color, Single, SizeF)

GetBorderThickness(Boolean)

Gets the border thickness for this element instance by delegating to the static GetBorderThickness(LightVisualElement, Boolean) method.

Declaration
protected virtual Padding GetBorderThickness(bool checkDrawBorder)
Parameters
System.Boolean checkDrawBorder

When true, returns zero thickness if DrawBorder is false.

Returns
System.Windows.Forms.Padding

A System.Windows.Forms.Padding structure representing the border thickness.

GetBorderThickness(LightVisualElement, Boolean)

Calculates the border thickness for a LightVisualElement based on its border configuration and drawing state.

Declaration
public static Padding GetBorderThickness(LightVisualElement element, bool checkDrawBorder)
Parameters
LightVisualElement element

The LightVisualElement instance to calculate border thickness for.

System.Boolean checkDrawBorder

When true, returns zero thickness if DrawBorder is false; otherwise ignores the drawing state.

Returns
System.Windows.Forms.Padding

A System.Windows.Forms.Padding structure representing the calculated border thickness for all sides.

GetClientOffset(Boolean)

Calculates the client area offset by combining padding and optionally border thickness.

Declaration
protected virtual Padding GetClientOffset(bool includeBorder)
Parameters
System.Boolean includeBorder

When true, includes border thickness in the offset calculation.

Returns
System.Windows.Forms.Padding

A System.Windows.Forms.Padding structure representing the total client area offset.

GetClientRectangle(Boolean, SizeF)

Calculates the client rectangle area available for content within the element bounds, optionally including border space.

Declaration
protected virtual RectangleF GetClientRectangle(bool includeBorder, SizeF finalSize)
Parameters
System.Boolean includeBorder

When true, accounts for border thickness in the client rectangle calculation.

System.Drawing.SizeF finalSize

The total size of the element from which to calculate the client rectangle.

Returns
System.Drawing.RectangleF

A System.Drawing.RectangleF representing the available client area for content.

GetClientRectangle(SizeF)

Declaration
protected override RectangleF GetClientRectangle(SizeF finalSize)
Parameters
System.Drawing.SizeF finalSize

Returns
System.Drawing.RectangleF

Overrides
RadElement.GetClientRectangle(SizeF)

GetClipRect()

Calculates the clipping rectangle for this element, taking into account border thickness and padding.

Declaration
protected override RectangleF GetClipRect()
Returns
System.Drawing.RectangleF

A System.Drawing.RectangleF representing the clipping bounds for content rendering.

Overrides
RadElement.GetClipRect()

GetFaceRectangle()

Declaration
public RectangleF GetFaceRectangle()
Returns
System.Drawing.RectangleF

Implements
ITextProvider.GetFaceRectangle()

GetImageDrawTypeLocalValue()

Declaration
protected ImageDrawType? GetImageDrawTypeLocalValue()
Returns
System.Nullable<ImageDrawType>

GetPaintingBorderWidth()

Declaration
public override float GetPaintingBorderWidth()
Returns
System.Single

Overrides
UIItemBase.GetPaintingBorderWidth()

GetStylablePropertiesFilter()

Declaration
public override Filter GetStylablePropertiesFilter()
Returns
Filter

Overrides
RadElement.GetStylablePropertiesFilter()

GetTextAlignment()

Declaration
protected ContentAlignment GetTextAlignment()
Returns
System.Drawing.ContentAlignment

GetTextAlignment(ContentAlignment)

Declaration
protected ContentAlignment GetTextAlignment(ContentAlignment textAlignment)
Parameters
System.Drawing.ContentAlignment textAlignment

Returns
System.Drawing.ContentAlignment

GetTextSize(SizeF, TextParams)

Calculates the size required to display the text content within the proposed size constraints.

Declaration
public SizeF GetTextSize(SizeF proposedSize, TextParams textParams)
Parameters
System.Drawing.SizeF proposedSize

The proposed size constraints for the text measurement.

TextParams textParams

The text parameters containing formatting and display options.

Returns
System.Drawing.SizeF

A System.Drawing.SizeF representing the calculated text size.

Implements
ITextPrimitive.GetTextSize(SizeF, TextParams)

GetTextSize(TextParams)

Calculates the size required to display the text content using the specified text parameters.

Declaration
public SizeF GetTextSize(TextParams textParams)
Parameters
TextParams textParams

The text parameters containing formatting and display options.

Returns
System.Drawing.SizeF

A System.Drawing.SizeF representing the calculated text size.

Implements
ITextPrimitive.GetTextSize(TextParams)

InitializeFields()

Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.

Declaration
protected override void InitializeFields()
Overrides
RadItem.InitializeFields()

MapStyleProperty(RadProperty, String)

Declaration
public override RadProperty MapStyleProperty(RadProperty propertyToMap, string settingType)
Parameters
RadProperty propertyToMap

System.String settingType

Returns
RadProperty

Overrides
RadElement.MapStyleProperty(RadProperty, String)

MeasureElements(SizeF, SizeF, Padding)

Measures all child elements when auto-sizing is enabled, calculating the space required for child elements.

Declaration
protected virtual SizeF MeasureElements(SizeF availableSize, SizeF clientSize, Padding borderThickness)
Parameters
System.Drawing.SizeF availableSize

The available space that a parent element can allocate.

System.Drawing.SizeF clientSize

The client area size available for content.

System.Windows.Forms.Padding borderThickness

The thickness of the border that affects available space.

Returns
System.Drawing.SizeF

The desired size needed to accommodate all child elements.

MeasureOverride(SizeF)

Measures the desired size of the element by calculating the space needed for content, padding, and borders.

Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF availableSize

The available space that a parent element can allocate to this element.

Returns
System.Drawing.SizeF

The desired size of the element including content, padding, and border space.

Overrides
RadElement.MeasureOverride(SizeF)

MeasureOverride(SizeF, TextParams)

Measures the desired size of the text content given the available space and text parameters.

Declaration
public SizeF MeasureOverride(SizeF availableSize, TextParams textParams)
Parameters
System.Drawing.SizeF availableSize

The available space for measuring the text content.

TextParams textParams

The text parameters containing formatting and display options.

Returns
System.Drawing.SizeF

A System.Drawing.SizeF representing the desired size of the text content.

Implements
ITextPrimitive.MeasureOverride(SizeF, TextParams)

OnAnimatedImageFrameChanged()

Called when animated image frame changes.

Declaration
protected virtual void OnAnimatedImageFrameChanged()

OnBitStateChanged(Int64, Boolean, Boolean)

Handles state changes for bit flags, particularly managing text primitive implementation when HTML rendering is disabled.

Declaration
protected override void OnBitStateChanged(long key, bool oldValue, bool newValue)
Parameters
System.Int64 key

The bit flag key that was changed.

System.Boolean oldValue

The previous value of the bit flag.

System.Boolean newValue

The new value of the bit flag.

Overrides
DisposableObject.OnBitStateChanged(Int64, Boolean, Boolean)

OnLoaded()

Declaration
protected override void OnLoaded()
Overrides
RadElement.OnLoaded()

OnMouseMove(Object, MouseEventArgs)

Handles mouse movement events for the text primitive, enabling text interaction features.

Declaration
public void OnMouseMove(object sender, MouseEventArgs e)
Parameters
System.Object sender

The source of the mouse move event.

System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs containing event data.

Implements
ITextPrimitive.OnMouseMove(Object, MouseEventArgs)

OnMouseMove(MouseEventArgs)

Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

Overrides
RadItem.OnMouseMove(MouseEventArgs)

OnPropertyChanged(RadPropertyChangedEventArgs)

Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs e

Overrides
UIItemBase.OnPropertyChanged(RadPropertyChangedEventArgs)

OnTunnelEvent(RadElement, RoutedEventArgs)

Declaration
protected override void OnTunnelEvent(RadElement sender, RoutedEventArgs args)
Parameters
RadElement sender

RoutedEventArgs args

Overrides
RadElement.OnTunnelEvent(RadElement, RoutedEventArgs)

PaintBackgroundImage(IGraphics)

Renders the background image of the element according to the specified BackgroundImageLayout setting.

Declaration
protected virtual void PaintBackgroundImage(IGraphics graphics)
Parameters
IGraphics graphics

The graphics context used for rendering the background image.

PaintContent(IGraphics)

Orchestrates the painting of all content elements including background image, main image or SVG image, and text.

Declaration
protected virtual void PaintContent(IGraphics graphics)
Parameters
IGraphics graphics

The graphics context used for rendering content.

PaintElement(IGraphics, Single, SizeF)

Performs the main painting operation for the element, rendering fill, content, and border in the correct order.

Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics graphics

The graphics context used for rendering.

System.Single angle

The rotation angle to apply during painting.

System.Drawing.SizeF scale

The scaling factor to apply during painting.

Overrides
VisualElement.PaintElement(IGraphics, Single, SizeF)

PaintImage(IGraphics)

Renders the main image of the element, handling image animation and thread-safe access to the cached image.

Declaration
protected virtual void PaintImage(IGraphics graphics)
Parameters
IGraphics graphics

The graphics context used for rendering the image.

PaintPrimitive(IGraphics, Single, SizeF, TextParams)

Paints the text primitive with the specified graphics context, transformation, and text parameters.

Declaration
public void PaintPrimitive(IGraphics graphics, float angle, SizeF scale, TextParams textParams)
Parameters
IGraphics graphics

The graphics context used for painting.

System.Single angle

The rotation angle to apply during painting.

System.Drawing.SizeF scale

The scale factor to apply during painting.

TextParams textParams

The text parameters containing formatting and display options.

Implements
ITextPrimitive.PaintPrimitive(IGraphics, Single, SizeF, TextParams)

PaintPrimitive(IGraphics, TextParams)

Paints the text primitive with the specified graphics context and text parameters.

Declaration
public void PaintPrimitive(IGraphics graphics, TextParams textParams)
Parameters
IGraphics graphics

The graphics context used for painting.

TextParams textParams

The text parameters containing formatting and display options.

Implements
ITextPrimitive.PaintPrimitive(IGraphics, TextParams)

PaintSvgImage(IGraphics)

Renders the SVG image of the element when an SvgImage is available and image drawing is enabled.

Declaration
protected virtual void PaintSvgImage(IGraphics graphics)
Parameters
IGraphics graphics

The graphics context used for rendering the SVG image.

PaintText(IGraphics)

Renders the text content of the element, including horizontal line effects when enabled.

Declaration
protected virtual void PaintText(IGraphics graphics)
Parameters
IGraphics graphics

The graphics context used for rendering text.

PaintTextCore(IGraphics)

Declaration
protected void PaintTextCore(IGraphics graphics)
Parameters
IGraphics graphics

ShouldSerializeProperty(PropertyDescriptor)

Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor property

Returns
System.Nullable<System.Boolean>

Overrides
RadItem.ShouldSerializeProperty(PropertyDescriptor)

ToggleTextPrimitive(RadProperty)

Toggles the text primitive when text related properties are change.

Declaration
protected virtual void ToggleTextPrimitive(RadProperty property)
Parameters
RadProperty property

The changed property.

Extension Methods

CommonExtensions.ClearIfNoBindingAndSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
SerializationExtensions.DeserializePrimitives(RadItem, SerializationInfo)
CommonExtensions.SetIfDifferent(RadObject, RadProperty, Object)
CommonExtensions.ClearIfSet(RadObject, RadProperty)
CommonExtensions.IsLocalValueSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.