Class
BorderPrimitive

Represents a primitive element that renders borders around other elements with comprehensive styling and customization options.

Definition

Namespace:Telerik.WinControls.Primitives

Assembly:Telerik.WinControls.dll

Syntax:

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

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveBorderPrimitive

Derived Classes: FormBorderPrimitive

Implements: IBorderElementIBoxElementIBoxStyleICustomTypeDescriptorIDisposableINotifyPropertyChangedIPrimitiveIPrimitiveElementIShapedElementIStylableNodeISupportSystemSkin

Inherited Members BasePrimitive.BoxCategoryBasePrimitive.PaintElement(IGraphics, float, SizeF)BasePrimitive.IsEmptyVisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.OnFontChanged(EventArgs)VisualElement.OnPropertyChanging(RadPropertyChangingEventArgs)VisualElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool)VisualElement.PrePaintElement(IGraphics)VisualElement.PostPaintElement(IGraphics)VisualElement.GetScaledFont(float)VisualElement.GetScaledFont(float, Font)VisualElement.DefaultSizeVisualElement.ForeColorVisualElement.BackColorVisualElement.FontVisualElement.CustomFontVisualElement.CustomFontSizeVisualElement.CustomFontStyleVisualElement.SmoothingModeVisualElement.OpacityVisualElement.FontChangedRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.CallCreateChildElements()RadElement.SuspendReferenceUpdate()RadElement.ResumeReferenceUpdate()RadElement.CreateChildElements()RadElement.OnLoad(bool)RadElement.LoadCore()RadElement.OnLoaded()RadElement.OnUnload(ComponentThemableElementTree, bool)RadElement.UnloadCore(ComponentThemableElementTree)RadElement.OnUnloaded(ComponentThemableElementTree)RadElement.OnElementTreeChanged(ComponentThemableElementTree)RadElement.OnBeginDispose()RadElement.SetParent(RadElement)RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool)RadElement.ResetLayout(bool)RadElement.HasInvisibleAncestor()RadElement.ResetLayoutCore()RadElement.InvalidateArrange()RadElement.InvalidateArrange(bool)RadElement.InvalidateMeasure()RadElement.InvalidateMeasure(bool)RadElement.UpdateLayout()RadElement.SuspendLayout()RadElement.SuspendLayout(bool)RadElement.ResumeLayout(bool)RadElement.ResumeLayout(bool, bool)RadElement.Arrange(RectangleF)RadElement.Measure(SizeF)RadElement.SetBounds(Rectangle)RadElement.SetBounds(int, int, int, int)RadElement.GetBoundingRectangle(Size)RadElement.GetBoundingRectangle(Rectangle)RadElement.GetDesiredSize(bool)RadElement.PointToScreen(Point)RadElement.PointFromScreen(Point)RadElement.PointToControl(Point)RadElement.PointFromControl(Point)RadElement.LocationToControl()RadElement.RectangleToScreen(Rectangle)RadElement.HitTest(Point)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(bool)RadElement.Invalidate()RadElement.Invalidate(bool)RadElement.GetInvalidateBounds()RadElement.NotifyInvalidate(RadElement)RadElement.OnTransformationInvalidated()RadElement.PerformLayoutTransformation(ref RadMatrix)RadElement.PerformPaintTransformation(ref RadMatrix)RadElement.IsInGetAsBitmap()RadElement.PaintElementSkin(IGraphics)RadElement.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintBackgroundShape(IGraphics)RadElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF)RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintShadow(RadElement, IGraphics)RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)RadElement.GetShadowRect(ref Rectangle, int)RadElement.PaintFocusCues(IGraphics, Rectangle)RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)RadElement.GetAsBitmapEx(Color, float, SizeF)RadElement.GetAsBitmapEx(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)RadElement.GetClipRect()RadElement.ShouldPaintChild(RadElement)RadElement.GetFocusRect()RadElement.GetCurrentShape()RadElement.GetPaintRectangle(float, float, SizeF)RadElement.GetPatchedRect(RectangleF, float, SizeF)RadElement.GetXPVisualStyle()RadElement.GetVistaVisualStyle()RadElement.InitializeSystemSkinPaint()RadElement.UnitializeSystemSkinPaint()RadElement.GetSystemSkinPaintBounds()RadElement.OnUseSystemSkinChanged(EventArgs)RadElement.ShouldPaintSystemSkin()RadElement.ComposeShouldPaintSystemSkin()RadElement.ResetStyleSettings(bool)RadElement.ResetStyleSettings(bool, RadProperty)RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)RadElement.AddBehavior(PropertyChangeBehavior)RadElement.GetBehaviors()RadElement.RemoveBehavior(PropertyChangeBehavior)RadElement.ClearBehaviors()RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)RadElement.SetThemeApplied(bool)RadElement.OnStyleChanged(RadPropertyChangedEventArgs)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.IsChildOf(RadElement)RadElement.Focus()RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()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.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.UpdateContainsFocus(bool)RadElement.DoMouseEnter(EventArgs)RadElement.DoMouseLeave(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(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetClientRectangle(SizeF)RadElement.GetBorderThickness(BorderPrimitive)RadElement.DpiScaleChanged(SizeF)RadElement.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.UseSystemSkinRadElement.CanHaveOwnStyleRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.ShouldHandleMouseInputRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.EnabledRadElement.CanFocusRadElement.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.ShouldPaintRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.StretchVerticallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.ToolTipTextRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseEnterRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(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.GetInheritedValue(RadProperty)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

BorderPrimitive()

Declaration

cs-api-definition
public BorderPrimitive()

Fields

BorderBoxStyleProperty

Declaration

cs-api-definition
public static readonly RadProperty BorderBoxStyleProperty

Field Value

RadProperty

BorderDashPatternProperty

Declaration

cs-api-definition
public static readonly RadProperty BorderDashPatternProperty

Field Value

RadProperty

BorderDashStyleProperty

Declaration

cs-api-definition
public static readonly RadProperty BorderDashStyleProperty

Field Value

RadProperty

BorderDrawModeProperty

Declaration

cs-api-definition
public static readonly RadProperty BorderDrawModeProperty

Field Value

RadProperty

BottomColorProperty

Declaration

cs-api-definition
public static readonly RadProperty BottomColorProperty

Field Value

RadProperty

BottomShadowColorProperty

Declaration

cs-api-definition
public static readonly RadProperty BottomShadowColorProperty

Field Value

RadProperty

BottomWidthProperty

Declaration

cs-api-definition
public static readonly RadProperty BottomWidthProperty

Field Value

RadProperty

ForeColor2Property

Declaration

cs-api-definition
public static RadProperty ForeColor2Property

Field Value

RadProperty

ForeColor3Property

Declaration

cs-api-definition
public static RadProperty ForeColor3Property

Field Value

RadProperty

ForeColor4Property

Declaration

cs-api-definition
public static RadProperty ForeColor4Property

Field Value

RadProperty

GradientAngleProperty

Declaration

cs-api-definition
public static RadProperty GradientAngleProperty

Field Value

RadProperty

GradientStyleProperty

Declaration

cs-api-definition
public static RadProperty GradientStyleProperty

Field Value

RadProperty

InnerColor2Property

Declaration

cs-api-definition
public static RadProperty InnerColor2Property

Field Value

RadProperty

InnerColor3Property

Declaration

cs-api-definition
public static RadProperty InnerColor3Property

Field Value

RadProperty

InnerColor4Property

Declaration

cs-api-definition
public static RadProperty InnerColor4Property

Field Value

RadProperty

InnerColorProperty

Declaration

cs-api-definition
public static RadProperty InnerColorProperty

Field Value

RadProperty

LeftColorProperty

Declaration

cs-api-definition
public static readonly RadProperty LeftColorProperty

Field Value

RadProperty

LeftShadowColorProperty

Declaration

cs-api-definition
public static readonly RadProperty LeftShadowColorProperty

Field Value

RadProperty

LeftWidthProperty

Declaration

cs-api-definition
public static readonly RadProperty LeftWidthProperty

Field Value

RadProperty

PaintUsingParentShapeProperty

Declaration

cs-api-definition
public static readonly RadProperty PaintUsingParentShapeProperty

Field Value

RadProperty

RightColorProperty

Declaration

cs-api-definition
public static readonly RadProperty RightColorProperty

Field Value

RadProperty

RightShadowColorProperty

Declaration

cs-api-definition
public static readonly RadProperty RightShadowColorProperty

Field Value

RadProperty

RightWidthProperty

Declaration

cs-api-definition
public static readonly RadProperty RightWidthProperty

Field Value

RadProperty

TopColorProperty

Declaration

cs-api-definition
public static readonly RadProperty TopColorProperty

Field Value

RadProperty

TopShadowColorProperty

Declaration

cs-api-definition
public static readonly RadProperty TopShadowColorProperty

Field Value

RadProperty

TopWidthProperty

Declaration

cs-api-definition
public static readonly RadProperty TopWidthProperty

Field Value

RadProperty

WidthProperty

Declaration

cs-api-definition
public static readonly RadProperty WidthProperty

Field Value

RadProperty

Properties

BorderDashPattern

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

Declaration

cs-api-definition
public float[] BorderDashPattern { get; set; }

Property Value

float[]

Implements IBorderElement.BorderDashPattern

BorderDashStyle

Specifies the style of dashed lines drawn with a border.

Declaration

cs-api-definition
public DashStyle BorderDashStyle { get; set; }

Property Value

DashStyle

Implements IBorderElement.BorderDashStyle

BorderDrawMode

Declaration

cs-api-definition
public BorderDrawModes BorderDrawMode { get; set; }

Property Value

BorderDrawModes

Implements IBorderElement.BorderDrawMode

BorderSize

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

Declaration

cs-api-definition
[Browsable(false)]
public SizeF BorderSize { get; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BottomColor { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public Color BottomShadowColor { get; set; }

Property Value

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

cs-api-definition
public float BottomWidth { get; set; }

Property Value

float

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

cs-api-definition
public BorderBoxStyle BoxStyle { get; set; }

Property Value

BorderBoxStyle

Implements IBorderElement.BoxStyle

FitToSizeMode

Gets or sets a value indicating the way element will fill its available size when parent element is calculating element size and location.

Declaration

cs-api-definition
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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor2 { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor3 { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ForeColor4 { get; set; }

Property Value

Color

Implements IBorderElement.ForeColor4

GradientAngle

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

Declaration

cs-api-definition
public float GradientAngle { get; set; }

Property Value

float

Implements IBorderElement.GradientAngle

GradientStyle

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

Declaration

cs-api-definition
public GradientStyles GradientStyle { get; set; }

Property Value

GradientStyles

Implements IBorderElement.GradientStyle

HorizontalWidth

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

Declaration

cs-api-definition
[Browsable(false)]
public float HorizontalWidth { get; }

Property Value

float

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor2 { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor3 { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color InnerColor4 { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public Color LeftColor { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public Color LeftShadowColor { get; set; }

Property Value

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

cs-api-definition
public float LeftWidth { get; set; }

Property Value

float

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

cs-api-definition
[Browsable(false)]
public SizeF Offset { get; }

Property Value

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

cs-api-definition
public bool PaintUsingParentShape { get; set; }

Property Value

bool

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public Color RightColor { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public Color RightShadowColor { get; set; }

Property Value

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

cs-api-definition
public float RightWidth { get; set; }

Property Value

float

Implements IBoxElement.RightWidth

ShouldPaintUsingParentShape

Declaration

cs-api-definition
protected override bool ShouldPaintUsingParentShape { get; }

Property Value

bool

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public Color TopColor { get; set; }

Property Value

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

cs-api-definition
[TypeConverter(typeof(RadColorEditorConverter))]
public Color TopShadowColor { get; set; }

Property Value

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

cs-api-definition
public float TopWidth { get; set; }

Property Value

float

Implements IBoxElement.TopWidth

VerticalWidth

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

Declaration

cs-api-definition
[Browsable(false)]
public float VerticalWidth { get; }

Property Value

float

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

cs-api-definition
public float Width { get; set; }

Property Value

float

Implements IBoxElement.Width

Methods

ArrangeOverride(SizeF)

Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.

Declaration

cs-api-definition
protected override SizeF ArrangeOverride(SizeF finalSize)

Parameters

finalSize

SizeF

The size that is available for element.

Returns

SizeF

The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.

Overrides RadElement.ArrangeOverride(SizeF)

Remarks

In this method call to the Arrange method of each child must be made.

GetBorderThickness()

Gets the border thickness.

Declaration

cs-api-definition
public Padding GetBorderThickness()

Returns

Padding

An instance of Padding representing the border thickness.

GetDefaultValue(RadPropertyValue, object)

Allows inheritors to provide custom default value.

Declaration

cs-api-definition
protected override object GetDefaultValue(RadPropertyValue propVal, object baseDefaultValue)

Parameters

propVal

RadPropertyValue

baseDefaultValue

object

Returns

object

Overrides RadObject.GetDefaultValue(RadPropertyValue, object)

GetStylablePropertiesFilter()

Gets the IFilter instance that may be used to filter the properties, treated as Stylable for this element.

Declaration

cs-api-definition
public override Filter GetStylablePropertiesFilter()

Returns

Filter

Overrides RadElement.GetStylablePropertiesFilter()

InitializeFields()

Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.

Declaration

cs-api-definition
protected override void InitializeFields()

Overrides BasePrimitive.InitializeFields()

MeasureOverride(SizeF)

Measures the space required by the RadElement

Used by the layout system.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)

Returns

SizeF

The minimum size required by the element to be completely visible. Cannot be infinity.

Overrides RadElement.MeasureOverride(SizeF)

Remarks

In this method call to the Measure method of each child must be made.

OnChildrenChanged(RadElement, ItemsChangeOperation)

Declaration

cs-api-definition
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)

Parameters

child

RadElement

changeOperation

ItemsChangeOperation

Overrides RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)

OnParentChanged(RadElement)

Notifies for a change in the Parent value.

Declaration

cs-api-definition
protected override void OnParentChanged(RadElement previousParent)

Parameters

previousParent

RadElement

The previous parent element (if any)

Overrides RadElement.OnParentChanged(RadElement)

OnPropertyChanged(RadPropertyChangedEventArgs)

Called when a property value has changed, allowing for custom response to property changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The property changed event arguments.

Overrides VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs)

PaintPrimitive(IGraphics, float, SizeF)

Renders the border primitive using the specified graphics context with rotation and scaling support.

Declaration

cs-api-definition
public override void PaintPrimitive(IGraphics graphics, float angle, SizeF scale)

Parameters

graphics

IGraphics

The graphics context to use for rendering the border.

angle

float

The rotation angle in degrees to apply during rendering.

scale

SizeF

The scaling factor to apply during rendering.

Overrides BasePrimitive.PaintPrimitive(IGraphics, float, SizeF)

Remarks

This method delegates the actual border painting to the internal border implementation, which handles the complex rendering logic for different border styles, shapes, and effects. The rendering is optimized for performance and supports advanced features like anti-aliasing and gradient effects.

ShouldSerializeProperty(PropertyDescriptor)

Determines whether the property defined by the provided property descriptor should be serialized.

Declaration

cs-api-definition
public override bool? ShouldSerializeProperty(PropertyDescriptor property)

Parameters

property

PropertyDescriptor

Returns

bool?

Overrides RadObject.ShouldSerializeProperty(PropertyDescriptor)

ShouldUsePaintBuffer()

Declaration

cs-api-definition
protected virtual bool ShouldUsePaintBuffer()

Returns

bool