예제 #1
0
 internal object ConvertString(object AData)
 {
     if (AData is string)
     {
         var src = AData as string;
         if (tOLAPGridGeneric.CutLength > 0 && src.Length > tOLAPGridGeneric.CutLength)
         {
             //return src;
             var lines = src.Split(new string[1] {
                 "\n"
             }, StringSplitOptions.RemoveEmptyEntries);
             for (var i = 0; i < lines.Length; i++)
             {
                 lines[i] = tOLAPGridGeneric.CutLineOfText(lines[i]);
             }
             return(string.Join("\n", lines));
         }
     }
     return(AData);
 }