HtmlTextWriterStyle enumeration does not contain most of the available CSS properties

  • Thread starter Nathan Sokalski
  • Start date
N

Nathan Sokalski

I was using the HtmlTextWriter class, and I noticed that the
HtmlTextWriterStyle enumeration contains very few of the available CSS
properties. The ones I was looking for specifically were Margin and Padding.
Even though I know that I can still add these using the
AddStyleAttribute(String,String) overload of the method, I find it very
surprising that so few were included in the enumeration. Am I missing
something, or is this enumeration just not very up to date?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top