Ejemplo n.º 1
0
 /// <devdoc>
 /// <para>Resets all properties that have their default value to their unset state. </para>
 /// </devdoc>
 public void ClearDefaults()
 {
     if (Names.Length == 0)
     {
         owner.ViewState.Remove("Font_Names");
         owner.ClearBit(Style.PROP_FONT_NAMES);
     }
     if (Size == FontUnit.Empty)
     {
         owner.ViewState.Remove("Font_Size");
         owner.ClearBit(Style.PROP_FONT_SIZE);
     }
     if (Bold == false)
     {
         ResetBold();
     }
     if (Italic == false)
     {
         ResetItalic();
     }
     if (Underline == false)
     {
         ResetUnderline();
     }
     if (Overline == false)
     {
         ResetOverline();
     }
     if (Strikeout == false)
     {
         ResetStrikeout();
     }
 }