skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class BorderPrimitive

Represents a border that is drawn on the screen.

Inheritance
System.Object
DisposableObject
RadObject
RadElement
VisualElement
BasePrimitive
BorderPrimitive
FormBorderPrimitive
Inherited Members
BasePrimitive.BoxCategory
BasePrimitive.PaintElement(IGraphics, Single, SizeF)
BasePrimitive.IsEmpty
VisualElement.DefaultSizeProperty
VisualElement.ForeColorProperty
VisualElement.BackColorProperty
VisualElement.FontProperty
VisualElement.SmoothingModeProperty
VisualElement.OpacityProperty
VisualElement.CustomFontProperty
VisualElement.CustomFontSizeProperty
VisualElement.CustomFontStyleProperty
VisualElement.OnFontChanged(EventArgs)
VisualElement.OnPropertyChanging(RadPropertyChangingEventArgs)
VisualElement.PaintChildren(IGraphics, Rectangle, Single, SizeF, Boolean)
VisualElement.PrePaintElement(IGraphics)
VisualElement.PostPaintElement(IGraphics)
VisualElement.GetScaledFont(Single)
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.OnLoaded()
RadElement.OnUnload(ComponentThemableElementTree, Boolean)
RadElement.UnloadCore(ComponentThemableElementTree)
RadElement.OnUnloaded(ComponentThemableElementTree)
RadElement.OnElementTreeChanged(ComponentThemableElementTree)
RadElement.OnBeginDispose()
RadElement.SetParent(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.PaintOverride(IGraphics, Rectangle, Single, SizeF, Boolean)
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(Color, Single, SizeF)
RadElement.GetAsBitmapEx(Brush, Single, SizeF)
RadElement.GetAsBitmap(Brush, Single, SizeF)
RadElement.IsInVisibleClipBounds(Rectangle)
RadElement.SetClipping(Graphics)
RadElement.GetClipRect()
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.MapStyleProperty(RadProperty, String)
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.RaiseBubbleEvent(RadElement, RoutedEventArgs)
RadElement.OnTunnelEvent(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.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.OnMouseMove(MouseEventArgs)
RadElement.OnMouseHover(EventArgs)
RadElement.OnEnabledChanged(RadPropertyChangedEventArgs)
RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)
RadElement.OnMouseDown(MouseEventArgs)
RadElement.OnMouseUp(MouseEventArgs)
RadElement.OnLostMouseCapture(MouseEventArgs)
RadElement.OnClick(EventArgs)
RadElement.OnDoubleClick(EventArgs)
RadElement.OnMouseEnter(EventArgs)
RadElement.OnMouseLeave(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.OnBoundsChanged(RadPropertyChangedEventArgs)
RadElement.OnLocationChanged(RadPropertyChangedEventArgs)
RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)
RadElement.IsPropertyCancelable(RadPropertyMetadata)
RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)
RadElement.ReplaceDefaultDescriptors(PropertyDescriptorCollection)
RadElement.ToString()
RadElement.DisposeManagedResources()
RadElement.PerformDispose(Boolean)
RadElement.DisposeChildren()
RadElement.ResetUseCompatibleTextRendering()
RadElement.ShouldSerializeUseCompatibleTextRendering()
RadElement.IStylableNode.GetThemeEffectiveType()
RadElement.IStylableNode.ApplySettings(PropertySettingGroup)
RadElement.GetStylableChildrenHierarchy()
RadElement.GetStylableChildren()
RadElement.ResetStyleVersion()
RadElement.GetClientRectangle(SizeF)
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.UseSystemSkin
RadElement.VsbVisible
RadElement.CanHaveOwnStyle
RadElement.PropagateStyleToChildren
RadElement.ThemeEffectiveType
RadElement.ElementTree
RadElement.Children
RadElement.ChildrenHierarchy
RadElement.Parent
RadElement.RoutedEventBehaviors
RadElement.LayoutableChildrenCount
RadElement.ContainsFocus
RadElement.ShouldHandleMouseInput
RadElement.NotifyParentOnMouseInput
RadElement.IsAbleToRespondToMouseEvents
RadElement.AutoSize
RadElement.Bounds
RadElement.Location
RadElement.Size
RadElement.BorderThickness
RadElement.Padding
RadElement.Margin
RadElement.Alignment
RadElement.AutoSizeMode
RadElement.Enabled
RadElement.CanFocus
RadElement.IsFocused
RadElement.IsMouseOver
RadElement.IsMouseOverElement
RadElement.IsMouseDown
RadElement.InvalidateChildrenOnChildChanged
RadElement.ShouldPaint
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.SerializeProperties
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.ToolTipText
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.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.IsDesignMode
RadObject.PropertyFilter
RadObject.RadObjectType
RadObject.BindingContext
RadObject.PropertyChanged
RadObject.RadPropertyChanged
RadObject.RadPropertyChanging
RadObject.ShouldSerializePropertyHandler
DisposableObject.GetBitState(Int64)
DisposableObject.SetBitState(Int64, Boolean)
DisposableObject.OnBitStateChanged(Int64, Boolean, 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.Primitives
Assembly: Telerik.WinControls.dll

Syntax

public class BorderPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IBorderElement, IBoxStyle, IBoxElement, IPrimitiveElement, IShapedElement

Constructors

BorderPrimitive()

Declaration
public BorderPrimitive()

Fields

BorderBoxStyleProperty

Declaration
public static readonly RadProperty BorderBoxStyleProperty
Field Value
RadProperty

BorderDashPatternProperty

Declaration
public static readonly RadProperty BorderDashPatternProperty
Field Value
RadProperty

BorderDashStyleProperty

Declaration
public static readonly RadProperty BorderDashStyleProperty
Field Value
RadProperty

BorderDrawModeProperty

Declaration
public static readonly RadProperty BorderDrawModeProperty
Field Value
RadProperty

BottomColorProperty

Declaration
public static readonly RadProperty BottomColorProperty
Field Value
RadProperty

BottomShadowColorProperty

Declaration
public static readonly RadProperty BottomShadowColorProperty
Field Value
RadProperty

BottomWidthProperty

Declaration
public static readonly RadProperty BottomWidthProperty
Field Value
RadProperty

ForeColor2Property

Declaration
public static RadProperty ForeColor2Property
Field Value
RadProperty

ForeColor3Property

Declaration
public static RadProperty ForeColor3Property
Field Value
RadProperty

ForeColor4Property

Declaration
public static RadProperty ForeColor4Property
Field Value
RadProperty

GradientAngleProperty

Declaration
public static RadProperty GradientAngleProperty
Field Value
RadProperty

GradientStyleProperty

Declaration
public static RadProperty GradientStyleProperty
Field Value
RadProperty

InnerColor2Property

Declaration
public static RadProperty InnerColor2Property
Field Value
RadProperty

InnerColor3Property

Declaration
public static RadProperty InnerColor3Property
Field Value
RadProperty

InnerColor4Property

Declaration
public static RadProperty InnerColor4Property
Field Value
RadProperty

InnerColorProperty

Declaration
public static RadProperty InnerColorProperty
Field Value
RadProperty

LeftColorProperty

Declaration
public static readonly RadProperty LeftColorProperty
Field Value
RadProperty

LeftShadowColorProperty

Declaration
public static readonly RadProperty LeftShadowColorProperty
Field Value
RadProperty

LeftWidthProperty

Declaration
public static readonly RadProperty LeftWidthProperty
Field Value
RadProperty

PaintUsingParentShapeProperty

Declaration
public static readonly RadProperty PaintUsingParentShapeProperty
Field Value
RadProperty

RightColorProperty

Declaration
public static readonly RadProperty RightColorProperty
Field Value
RadProperty

RightShadowColorProperty

Declaration
public static readonly RadProperty RightShadowColorProperty
Field Value
RadProperty

RightWidthProperty

Declaration
public static readonly RadProperty RightWidthProperty
Field Value
RadProperty

TopColorProperty

Declaration
public static readonly RadProperty TopColorProperty
Field Value
RadProperty

TopShadowColorProperty

Declaration
public static readonly RadProperty TopShadowColorProperty
Field Value
RadProperty

TopWidthProperty

Declaration
public static readonly RadProperty TopWidthProperty
Field Value
RadProperty

WidthProperty

Declaration
public static readonly RadProperty WidthProperty
Field Value
RadProperty

Properties

BorderDashPattern

Specifies the pattern of dashed lines drawn when the BorderDashStyle is custom.

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

Implements
IBorderElement.BorderDashPattern

BorderDashStyle

Specifies the style of dashed lines drawn with a border.

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

Implements
IBorderElement.BorderDashStyle

BorderDrawMode

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

Implements
IBorderElement.BorderDrawMode

BorderSize

Retrieves size of the combined bottom, right, upper, and left border.

Declaration
public SizeF BorderSize { get; }
Property Value
System.Drawing.SizeF

Implements
IBoxElement.BorderSize

BottomColor

Gets and sets the bottom border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the bottom border.

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

Implements
IBoxStyle.BottomColor

BottomShadowColor

Gets and sets the bottom shadow color. This option applies only if fourBorders is chosen, and affects only the bottom border.

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

Implements
IBoxStyle.BottomShadowColor

BottomWidth

Gets or sets a float value width. This property has effect only if FourBorders style is used in BoxStyle property, and affects only the bottom border.

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

Implements
IBoxElement.BottomWidth

BoxStyle

Gets or sets the Border style. The two possible values are SingleBorder and FourBorder. In the single border case, all four sides share the same appearance although the entire border may have gradient. In four border case, each of the four sides may differ in appearance. For example, the left border may have different color, shadowcolor, and width from the rest. When SingleBorder is chosen, you should use the general properties such as width and color, and respectively, when the FourBorder style is chosen you should use properties prefixed with the corresponding side, for example, LeftColor, LeftWidth for the left side.

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

Implements
IBorderElement.BoxStyle

FitToSizeMode

Declaration
public override RadFitToSizeMode FitToSizeMode { get; set; }
Property Value
RadFitToSizeMode

Overrides
RadElement.FitToSizeMode

ForeColor2

Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.

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

Implements
IBorderElement.ForeColor2

ForeColor3

Gets or sets color used by radial, glass, office glass, and vista gradients. This is one of the colors that are used in the gradient effect.

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

Implements
IBorderElement.ForeColor3

ForeColor4

Gets or sets color used by radial, glass, office glass, and vista gradients. This is one of the colors that are used in the gradient effect.

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

Implements
IBorderElement.ForeColor4

GradientAngle

Gets or sets gradient angle for linear gradient measured in degrees.

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

Implements
IBorderElement.GradientAngle

GradientStyle

Gets or sets gradient style. Possible styles are solid, linear, radial, glass, office glass, gel, and vista.

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

Implements
IBorderElement.GradientStyle

HorizontalWidth

Gets the horizontal width of the combined left and right border.

Declaration
public float HorizontalWidth { get; }
Property Value
System.Single

Implements
IBoxElement.HorizontalWidth

InnerColor

Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.

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

Implements
IBorderElement.InnerColor

InnerColor2

Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.

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

Implements
IBorderElement.InnerColor2

InnerColor3

Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.

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

Implements
IBorderElement.InnerColor3

InnerColor4

Gets or sets color used by radial, glass, office glass, gel, and vista gradients. This is one of the colors that are used in the gradient effect.

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

Implements
IBorderElement.InnerColor4

LeftColor

Gets and sets the left border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the left border.

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

Implements
IBoxStyle.LeftColor

LeftShadowColor

Gets and sets the left shadow color. This option applies only if fourBorders is chosen, and affects only the left border.

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

Implements
IBoxStyle.LeftShadowColor

LeftWidth

Gets or sets a float value width of the left border. This property has effect only if FourBorders style is used in BoxStyle property and affects only the width of the left border.

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

Implements
IBoxElement.LeftWidth

Offset

Gets the border offset of the primitive. It effectively retrieves the upper-left corner inside the primitive border. It takes into consideration the BoxStyle property and possible different widths of the left and the upper side.

Declaration
public SizeF Offset { get; }
Property Value
System.Drawing.SizeF

Implements
IBoxElement.Offset

PaintUsingParentShape

Specifies whether the BorderPrimitive should draw the GraphicsPath defined by its Parent.Shape. If false, it will draw its bounding rectangle.

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

RightColor

Gets and sets the right border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the right border.

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

Implements
IBoxStyle.RightColor

RightShadowColor

Gets and sets the right shadow color. This option applies only if fourBorders is chosen, and affects only the right border.

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

Implements
IBoxStyle.RightShadowColor

RightWidth

Gets or sets a float value width of the right border. This property has effect only if FourBorders style is used in BoxStyle property, and affects only the right border.

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

Implements
IBoxElement.RightWidth

ShouldPaintUsingParentShape

Declaration
protected override bool ShouldPaintUsingParentShape { get; }
Property Value
System.Boolean

Overrides
RadElement.ShouldPaintUsingParentShape

TopColor

Gets and sets the top border color. This applies only if FourBorders is chosen for BoxStyle property, and affects only the top border.

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

Implements
IBoxStyle.TopColor

TopShadowColor

Gets and sets the top shadow color. This option applies only if fourBorders is chosen, and affects only the top border.

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

Implements
IBoxStyle.TopShadowColor

TopWidth

Gets or sets a float value width of the top border . This property has effect only if FourBorders style is used in BoxStyle property, and affects only the top border.

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

Implements
IBoxElement.TopWidth

VerticalWidth

Gets the vertical width of the combined bottom and upper border.

Declaration
public float VerticalWidth { get; }
Property Value
System.Single

Implements
IBoxElement.VerticalWidth

Width

Gets or sets float value indicating the width of the border measured in pixels. It is only used when SingleBorder style is chosen for the BoxStyle property which effectively means that all four borders share the same width.

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

Implements
IBoxElement.Width

Methods

ArrangeOverride(SizeF)

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

Returns
System.Drawing.SizeF

Overrides
RadElement.ArrangeOverride(SizeF)

GetBorderThickness()

Gets the border thickness.

Declaration
public Padding GetBorderThickness()
Returns
System.Windows.Forms.Padding

An instance of System.Windows.Forms.Padding representing the border thickness.

GetDefaultValue(RadPropertyValue, Object)

Declaration
protected override object GetDefaultValue(RadPropertyValue propVal, object baseDefaultValue)
Parameters
RadPropertyValue propVal

System.Object baseDefaultValue

Returns
System.Object

Overrides
RadObject.GetDefaultValue(RadPropertyValue, Object)

GetStylablePropertiesFilter()

Declaration
public override Filter GetStylablePropertiesFilter()
Returns
Filter

Overrides
RadElement.GetStylablePropertiesFilter()

InitializeFields()

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

MeasureOverride(SizeF)

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

Returns
System.Drawing.SizeF

Overrides
RadElement.MeasureOverride(SizeF)

OnChildrenChanged(RadElement, ItemsChangeOperation)

Declaration
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)
Parameters
RadElement child

ItemsChangeOperation changeOperation

Overrides
RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)

OnParentChanged(RadElement)

Declaration
protected override void OnParentChanged(RadElement previousParent)
Parameters
RadElement previousParent

Overrides
RadElement.OnParentChanged(RadElement)

OnPropertyChanged(RadPropertyChangedEventArgs)

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

Overrides
VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs)

PaintPrimitive(IGraphics, Single, SizeF)

Virtual method that paints the primitive on the screen. It may be overridden by the derived types.

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

System.Single angle

System.Drawing.SizeF scale

Overrides
BasePrimitive.PaintPrimitive(IGraphics, Single, SizeF)

ShouldSerializeProperty(PropertyDescriptor)

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

Returns
System.Nullable<System.Boolean>

Overrides
RadObject.ShouldSerializeProperty(PropertyDescriptor)

ShouldUsePaintBuffer()

Declaration
protected virtual bool ShouldUsePaintBuffer()
Returns
System.Boolean

Explicit Interface Implementations

IPrimitiveElement.BorderThickness

Declaration
float IPrimitiveElement.BorderThickness { get; }
Returns
System.Single

Implements
IPrimitiveElement.BorderThickness

IPrimitiveElement.GetExactPaintingRectangle(Single, SizeF)

Declaration
RectangleF IPrimitiveElement.GetExactPaintingRectangle(float angle, SizeF scale)
Parameters
System.Single angle

System.Drawing.SizeF scale

Returns
System.Drawing.RectangleF

Implements
IPrimitiveElement.GetExactPaintingRectangle(Single, SizeF)

IPrimitiveElement.GetPaintRectangle(Single, Single, SizeF)

Declaration
RectangleF IPrimitiveElement.GetPaintRectangle(float left, float angle, SizeF scale)
Parameters
System.Single left

System.Single angle

System.Drawing.SizeF scale

Returns
System.Drawing.RectangleF

Implements
IPrimitiveElement.GetPaintRectangle(Single, Single, SizeF)

IPrimitiveElement.IsDesignMode

Declaration
bool IPrimitiveElement.IsDesignMode { get; }
Returns
System.Boolean

Implements
IPrimitiveElement.IsDesignMode

IPrimitiveElement.ShouldUsePaintBuffer()

Declaration
bool IPrimitiveElement.ShouldUsePaintBuffer()
Returns
System.Boolean

Implements
IPrimitiveElement.ShouldUsePaintBuffer()

IShapedElement.GetCurrentShape()

Declaration
ElementShape IShapedElement.GetCurrentShape()
Returns
ElementShape

Implements
IShapedElement.GetCurrentShape()

Extension Methods

CommonExtensions.ClearIfNoBindingAndSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
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>>)

Was this article helpful?

Tell us how we can improve this article

Skip
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.