Exemplo n.º 1
0
 public static string GetCellPropertyString(CellProperties property)
 {
     switch (property)
     {
         case CellProperties.Value:
         case CellProperties.Text:
         case CellProperties.Width:
             return property.ToString();
         case CellProperties.Rotation:
             return "Orientation";
         case CellProperties.Font_Bold:
             return "Font.Bold";
         case CellProperties.Font_Italic:
             return "Font.Italic";
         case CellProperties.Font_Underline:
             return "Font.Underline";
         case CellProperties.Font_Name:
             return "Font.Name";
         case CellProperties.MergeAreaCount:
             return "MergeArea.Count";
         case CellProperties.PatternColor:
             return "Interior.PatternColorIndex";
         case CellProperties.PatternBackgroundColor:
             return "Interior.ColorIndex";
         case CellProperties.Comment:
             return "Comment";
         default:
             throw new NotSupportedException(property.ToString());
     }
 }
Exemplo n.º 2
0
        public static string GetCellPropertyString(CellProperties property)
        {
            switch (property)
            {
            case CellProperties.Value:
            case CellProperties.Text:
            case CellProperties.Width:
                return(property.ToString());

            case CellProperties.Rotation:
                return("Orientation");

            case CellProperties.Font_Bold:
                return("Font.Bold");

            case CellProperties.Font_Italic:
                return("Font.Italic");

            case CellProperties.Font_Underline:
                return("Font.Underline");

            case CellProperties.Font_Name:
                return("Font.Name");

            case CellProperties.MergeAreaCount:
                return("MergeArea.Count");

            case CellProperties.PatternColor:
                return("Interior.PatternColorIndex");

            case CellProperties.PatternBackgroundColor:
                return("Interior.ColorIndex");

            case CellProperties.Comment:
                return("Comment");

            default:
                throw new NotSupportedException(property.ToString());
            }
        }
Exemplo n.º 3
0
 public void ActivateEvent()
 {
     Debug.LogFormat("Activated event {0} at cell {1}", cellProperties.EventType, cellProperties.ToString());
 }