HtmlTextWriterStyle enumeration does not contain most of the available CSS properties

Discussion in 'ASP .Net Building Controls' started by Nathan Sokalski, Oct 9, 2005.

  1. 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?
    --
    Nathan Sokalski

    http://www.nathansokalski.com/
     
    Nathan Sokalski, Oct 9, 2005
    #1
    1. Advertising

  2. Nathan Sokalski

    Karl Seguin Guest

    You aren't missing something.

    2.0 has a richer definition:
    http://msdn2.microsoft.com/en-us/library/02w0d4e6

    Karl

    --
    MY ASP.Net tutorials
    http://www.openmymind.net/
    http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!



    "Nathan Sokalski" <> wrote in message
    news:...
    >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?
    > --
    > Nathan Sokalski
    >
    > http://www.nathansokalski.com/
    >
     
    Karl Seguin, Oct 9, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Sokalski
    Replies:
    1
    Views:
    1,866
    Karl Seguin
    Oct 9, 2005
  2. puvit82
    Replies:
    4
    Views:
    768
    puvit82
    Feb 1, 2008
  3. Roger Pack
    Replies:
    3
    Views:
    166
    Roger Pack
    Sep 28, 2010
  4. Mariusz Gadula

    Win32:OLE and properties enumeration

    Mariusz Gadula, Nov 24, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    176
    Mariusz Gadula
    Nov 29, 2004
  5. Jason Carlton
    Replies:
    11
    Views:
    251
    Dr J R Stockton
    Dec 8, 2009
Loading...

Share This Page