Category / Section
How to customize Text Primitive positions in GradientPanel?
1 min read
In GradientPanelExt, it is possible to customize the Position of Text Primitives in it. This can be achieved by using the property named “Position” of Text Primitive.
Following code examples demonstrates the same.
C#
//To Customize the TextPrimitive position in Gradient Panel this.textPrimitive1.Alignment = Alignment.Right; this.textPrimitive1.Position = 50;
VB
'To Customize the TextPrimitive position in Gradient Panel Me.textPrimitive1.Alignment = Alignment.Right Me.textPrimitive1.Position = 10
Figure 1. When TextPrimitive position =50 in Gradient Panel with image
Figure 1. When TextPrimitive position =10 in Gradient Panel with image
Sample Links:
C#: How to Customize the TextPrimitive Position in Gradient Panel C#
VB: How to Customize the TextPrimitive Position in Gradient Panel VB