This is a migrated thread and some comments may be shown as answers.

Change Label Border Color

0 Answers 231 Views
Label
This is a migrated thread and some comments may be shown as answers.
Mohsen
Top achievements
Rank 1
Mohsen asked on 29 Nov 2015, 06:46 AM

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(); } }

No answers yet. Maybe you can help?

Tags
Label
Asked by
Mohsen
Top achievements
Rank 1
Share this question
or