I want to define a property in user control which is similar margin property, how can i define it ? so that it will show All,Left,top,right,bottom when expanded in designer.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Margin property is defined as a struct:
So you can define your property as
Paddingor like a custom struct looking like this one.