Change Label Border Color

1 posts, 0 answers
  1. Mohsen
    Mohsen avatar
    5 posts
    Member since:
    Jun 2014

    Posted 29 Nov 2015 Link to this post

    How can I change left border width and color with the following code:

    public class MyBorderPrimitiveSElement : RadElement { protected override void CreateChildElements() { BorderPrimitive borderPrimitive = new BorderPrimitive(); borderPrimitive.Class = "MyBorderPrimtiveClass"; borderPrimitive.BoxStyle = BorderBoxStyle.SingleBorder; borderPrimitive.Width = 3; borderPrimitive.ForeColor = Color.Red; borderPrimitive.GradientStyle = GradientStyles.Solid; this.Children.Add(borderPrimitive); base.CreateChildElements(); } }

Back to Top