How to Parse a Custom Attribute in DevExpress
The Developer Express software helps you create custom Web software. An attribute is a type of property that defines a color, font or shape of a control such as a text box or image. You set up custom attributes to create additional properties for your controls. You parse custom attributes to display the setting to viewers of your page, such as displaying the color "Red" when you print.
Instructions
-
-
1
Open the DevExpress software and open the Web project that contains your custom control. Open the code file for your control by double-clicking it in the list of projects.
-
2
Edit the attribute's properties in the class before you parse it. For example, the following code sets a "FontColor" attribute to red:
Class myclass = new Class();
myclass.FontColor = "Red"; -
-
3
Parse the attribute's value. The following code initializes the class and parses the information to display to the person using your application:
Request.Write(myclass.FontColor);
Place this code in the function where you want to parse the information, such as the bottom of the coding file.
-
1