Search code examples
c#sharepointweb-parts

How can I get Appearance properties vlaues of my custom web part in sharepoint 2010


I am developing a web part, I created a custome properties and controls. but I need to read the width value in the Appearance group of the web part. how I can access to these values in codebehind ?


Solution

  • Within the WebPart class you can just use its Width Property:

    Unit width = this.Width;