forked from syncfusion/xamarin-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TablesPresentationHelper.cs
1670 lines (1380 loc) · 64.7 KB
/
TablesPresentationHelper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#region Copyright Syncfusion Inc. 2001-2022
// Copyright Syncfusion Inc. 2001-2022. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// [email protected]. Any infringement will be prosecuted under
// applicable laws.
#endregion
using System;
using Syncfusion.Presentation;
using System.IO;
using COLOR = Syncfusion.Drawing;
using System.Reflection;
#if __UNIFIED__
using Foundation;
using UIKit;
using CoreGraphics;
#else
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreGraphics;
using CGRect = System.Drawing.RectangleF;
using CGPoint = System.Drawing.PointF;
using CGSize = System.Drawing.SizeF;
#endif
namespace SampleBrowser
{
public static class TablesPresentationHelper
{
internal static void AddTableContent(IPresentation presentation)
{
#region Slide1
//Adding Title Slide to the first slide of the Presentation.
ISlide slide2 = presentation.Slides.Add(SlideLayoutType.TitleOnly);
IShape shape1 = slide2.Shapes[0] as IShape;
shape1.Left = 1.17 * 72;
shape1.Top = 0;
shape1.Width = 11 * 72;
shape1.Height = 1.76 * 72;
ITextBody textFrame1 = shape1.TextBody;
IParagraphs paragraphs1 = textFrame1.Paragraphs;
paragraphs1.Add();
IParagraph paragraph1 = paragraphs1[0];
paragraph1.HorizontalAlignment = HorizontalAlignmentType.Center;
//Instance to hold textparts in paragraph.
ITextParts textParts1 = paragraph1.TextParts;
textParts1.Add();
ITextPart textPart1 = textParts1[0];
textPart1.Text = "Target "; ;
IFont font1 = textPart1.Font;
font1.FontName = "Arial";
font1.FontSize = 28;
font1.Bold = true;
font1.CapsType = TextCapsType.All;
textParts1.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart2 = textParts1[1];
textPart2.Text = "VS ";
IFont font2 = textPart2.Font;
font2.FontName = "Arial";
font2.FontSize = 18;
textParts1.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart3 = textParts1[2];
textPart3.Text = "PERFORMANCE";
IFont font3 = textPart3.Font;
font3.FontName = "Arial";
font3.FontSize = 28;
font3.Bold = true;
//To add a new table in slide and set its stylepreset
ITable table = slide2.Shapes.AddTable(10, 9, 0.86 * 72, 1.33 * 72, 11.90 * 72, 5.26 * 72);
table.BuiltInStyle = BuiltInTableStyle.MediumStyle2Accent6;
//Instance to hold rows in table
IRows rows = table.Rows;
IRow row1 = rows[0];
row1.Height = 81.44;
//To set text alignment type inside cell
ICell cell11 = row1.Cells[0];
cell11.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs11 = cell11.TextBody.Paragraphs;
paragraphs11.Add();
IParagraph paragraph11 = paragraphs11[0];
paragraph11.HorizontalAlignment = HorizontalAlignmentType.Center;
ITextParts textParts11 = paragraph11.TextParts;
textParts11.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart11 = textParts11[0];
textPart11.Text = "Month";
IFont font11 = textPart11.Font;
font11.FontName = "Arial";
font11.FontSize = 14;
font11.Bold = true;
ICell cell12 = row1.Cells[1];
cell12.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs12 = cell12.TextBody.Paragraphs;
paragraphs12.Add();
IParagraph paragraph12 = paragraphs12[0];
paragraph12.HorizontalAlignment = HorizontalAlignmentType.Center;
ITextParts textParts12 = paragraph12.TextParts;
textParts12.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart12 = textParts12[0];
textPart12.Text = "Product A";
IFont font12 = textPart12.Font;
font12.FontName = "Arial";
font12.FontSize = 14;
font12.Bold = true;
//To set text alignment type inside cell
ICell cell13 = row1.Cells[2];
cell13.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs13 = cell13.TextBody.Paragraphs;
paragraphs13.Add();
IParagraph paragraph13 = paragraphs13[0];
paragraph13.HorizontalAlignment = HorizontalAlignmentType.Center;
ITextParts textParts13 = paragraph13.TextParts;
textParts13.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart13 = textParts13[0];
textPart13.Text = "Product B";
IFont font13 = textPart13.Font;
font13.FontName = "Arial";
font13.FontSize = 14;
font13.Bold = true;
ICell cell14 = row1.Cells[3];
cell14.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs14 = cell14.TextBody.Paragraphs;
paragraphs14.Add();
IParagraph paragraph14 = paragraphs14[0];
paragraph14.HorizontalAlignment = HorizontalAlignmentType.Center;
ITextParts textParts14 = paragraph14.TextParts;
textParts14.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart14 = textParts14[0];
textPart14.Text = "Product C";
IFont font14 = textPart14.Font;
font14.FontName = "Arial";
font14.FontSize = 14;
font14.Bold = true;
ICell cell15 = row1.Cells[4];
cell15.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs15 = cell15.TextBody.Paragraphs;
paragraphs15.Add();
IParagraph paragraph15 = paragraphs15[0];
paragraph15.HorizontalAlignment = HorizontalAlignmentType.Center;
ITextParts textParts15 = paragraph15.TextParts;
textParts15.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart15 = textParts15[0];
textPart15.Text = "Product D";
IFont font15 = textPart15.Font;
font15.FontName = "Arial";
font15.FontSize = 14;
font15.Bold = true;
ICell cell16 = row1.Cells[5];
cell16.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs16 = cell16.TextBody.Paragraphs;
paragraphs16.Add();
IParagraph paragraph16 = paragraphs16[0];
paragraph16.HorizontalAlignment = HorizontalAlignmentType.Center;
ITextParts textParts16 = paragraph16.TextParts;
textParts16.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart16 = textParts16[0];
textPart16.Text = "Product E";
IFont font16 = textPart16.Font;
font16.FontName = "Arial";
font16.FontSize = 14;
font16.Bold = true;
ICell cell17 = row1.Cells[6];
cell17.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs17 = cell17.TextBody.Paragraphs;
paragraphs17.Add();
IParagraph paragraph17 = paragraphs17[0];
paragraph17.HorizontalAlignment = HorizontalAlignmentType.Center;
ITextParts textParts17 = paragraph17.TextParts;
textParts17.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart17 = textParts17[0];
textPart17.Text = "Product F";
IFont font17 = textPart17.Font;
font17.FontName = "Arial";
font17.FontSize = 14;
font17.Bold = true;
ICell cell18 = row1.Cells[7];
cell18.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs18 = cell18.TextBody.Paragraphs;
paragraphs18.Add();
IParagraph paragraph18 = paragraphs18[0];
paragraph18.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts18 = paragraph18.TextParts;
textParts18.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart18 = textParts18[0];
textPart18.Text = "Average ";
IFont font18 = textPart18.Font;
font18.FontName = "Arial";
font18.FontSize = 14;
font18.Bold = true;
ICell cell19 = row1.Cells[8];
cell19.TextBody.VerticalAlignment = VerticalAlignmentType.Middle;
//To add a paragraph inside cell
IParagraphs paragraphs19 = cell19.TextBody.Paragraphs;
paragraphs19.Add();
IParagraph paragraph19 = paragraphs19[0];
paragraph19.HorizontalAlignment = HorizontalAlignmentType.Center;
ITextParts textParts19 = paragraph19.TextParts;
textParts19.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart19 = textParts19[0];
textPart19.Text = "Target";
IFont font19 = textPart19.Font;
font19.FontName = "Arial";
font19.FontSize = 14;
font19.Bold = true;
IRow row2 = table.Rows[1];
row2.Height = 34.90;
ICell cell21 = row2.Cells[0];
IParagraphs paragraphs21 = cell21.TextBody.Paragraphs;
//To add a paragraph inside cell
paragraphs21.Add();
IParagraph paragraph21 = paragraphs21[0];
paragraph21.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts21 = paragraph21.TextParts;
textParts21.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart21 = textParts21[0];
textPart21.Text = "Jan";
IFont font21 = textPart21.Font;
font21.FontName = "Arial";
font21.FontSize = 14;
ICell cell22 = row2.Cells[1];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs22 = cell22.TextBody.Paragraphs;
paragraphs22.Add();
IParagraph paragraph22 = paragraphs22[0];
paragraph22.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts22 = paragraph22.TextParts;
textParts22.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart22 = textParts22[0];
textPart22.Text = "20000";
IFont font22 = textPart22.Font;
font22.FontName = "Arial";
font22.FontSize = 14;
ICell cell23 = row2.Cells[2];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs23 = cell23.TextBody.Paragraphs;
paragraphs23.Add();
IParagraph paragraph23 = paragraphs23[0];
paragraph23.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts23 = paragraph23.TextParts;
textParts23.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart23 = textParts23[0];
textPart23.Text = "4200";
IFont font23 = textPart23.Font;
font23.FontName = "Arial";
font23.FontSize = 14;
ICell cell24 = row2.Cells[3];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs24 = cell24.TextBody.Paragraphs;
paragraphs24.Add();
IParagraph paragraph24 = paragraphs24[0];
paragraph24.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts24 = paragraph24.TextParts;
textParts24.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart24 = textParts24[0];
textPart24.Text = "8000";
IFont font24 = textPart24.Font;
font24.FontName = "Arial";
font24.FontSize = 14;
ICell cell25 = row2.Cells[4];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs25 = cell25.TextBody.Paragraphs;
paragraphs25.Add();
IParagraph paragraph25 = paragraphs25[0];
paragraph25.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts25 = paragraph25.TextParts;
textParts25.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart25 = textParts25[0];
textPart25.Text = "12000";
IFont font25 = textPart25.Font;
font25.FontName = "Arial";
font25.FontSize = 14;
ICell cell26 = row2.Cells[5];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs26 = cell26.TextBody.Paragraphs;
paragraphs26.Add();
IParagraph paragraph26 = paragraphs26[0];
paragraph26.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts26 = paragraph26.TextParts;
textParts26.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart26 = textParts26[0];
textPart26.Text = "4700";
IFont font26 = textPart26.Font;
font26.FontName = "Arial";
font26.FontSize = 14;
ICell cell27 = row2.Cells[6];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs27 = cell27.TextBody.Paragraphs;
paragraphs27.Add();
IParagraph paragraph27 = paragraphs27[0];
paragraph27.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts27 = paragraph27.TextParts;
textParts27.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart27 = textParts27[0];
textPart27.Text = "15000";
IFont font27 = textPart27.Font;
font27.FontName = "Arial";
font27.FontSize = 14;
ICell cell28 = row2.Cells[7];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs28 = cell28.TextBody.Paragraphs;
paragraphs28.Add();
IParagraph paragraph28 = paragraphs28[0];
paragraph28.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts28 = paragraph28.TextParts;
textParts28.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart28 = textParts28[0];
textPart28.Text = "3500";
IFont font28 = textPart28.Font;
font28.FontName = "Arial";
font28.FontSize = 14;
ICell cell29 = row2.Cells[8];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs29 = cell29.TextBody.Paragraphs;
paragraphs29.Add();
IParagraph paragraph29 = paragraphs29[0];
paragraph29.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts29 = paragraph29.TextParts;
textParts29.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart29 = textParts29[0];
textPart29.Text = "35000";
IFont font29 = textPart29.Font;
font29.FontName = "Arial";
font29.FontSize = 14;
//To set height of the row.
IRow row3 = table.Rows[2];
row2.Height = 34.90;
ICell cell31 = row3.Cells[0];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs31 = cell31.TextBody.Paragraphs;
paragraphs31.Add();
IParagraph paragraph31 = paragraphs31[0];
paragraph31.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts31 = paragraph31.TextParts;
textParts31.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart31 = textParts31[0];
textPart31.Text = "Feb";
IFont font31 = textPart31.Font;
font31.FontName = "Arial";
font31.FontSize = 14;
ICell cell32 = row3.Cells[1];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs32 = cell32.TextBody.Paragraphs;
paragraphs32.Add();
IParagraph paragraph32 = paragraphs32[0];
paragraph32.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts32 = paragraph32.TextParts;
textParts32.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart32 = textParts32[0];
textPart32.Text = "8300";
IFont font32 = textPart32.Font;
font32.FontName = "Arial";
font32.FontSize = 14;
ICell cell33 = row3.Cells[2];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs33 = cell33.TextBody.Paragraphs;
paragraphs33.Add();
IParagraph paragraph33 = paragraphs33[0];
paragraph33.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts33 = paragraph33.TextParts;
textParts33.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart33 = textParts33[0];
textPart33.Text = "19000";
IFont font33 = textPart33.Font;
font33.FontName = "Arial";
font33.FontSize = 14;
ICell cell34 = row3.Cells[3];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs34 = cell34.TextBody.Paragraphs;
paragraphs34.Add();
IParagraph paragraph34 = paragraphs34[0];
paragraph34.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts34 = paragraph34.TextParts;
textParts34.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart34 = textParts34[0];
textPart34.Text = "21000";
IFont font34 = textPart34.Font;
font34.FontName = "Arial";
font34.FontSize = 14;
ICell cell35 = row3.Cells[4];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs35 = cell35.TextBody.Paragraphs;
paragraphs35.Add();
IParagraph paragraph35 = paragraphs35[0];
paragraph35.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts35 = paragraph35.TextParts;
textParts35.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart35 = textParts35[0];
textPart35.Text = "15230";
IFont font35 = textPart35.Font;
font35.FontName = "Arial";
font35.FontSize = 14;
ICell cell36 = row3.Cells[5];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs36 = cell36.TextBody.Paragraphs;
paragraphs36.Add();
IParagraph paragraph36 = paragraphs36[0];
paragraph36.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts36 = paragraph36.TextParts;
textParts36.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart36 = textParts36[0];
textPart36.Text = "7230";
IFont font36 = textPart36.Font;
font36.FontName = "Arial";
font36.FontSize = 14;
ICell cell37 = row3.Cells[6];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs37 = cell37.TextBody.Paragraphs;
paragraphs37.Add();
IParagraph paragraph37 = paragraphs37[0];
paragraph37.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts37 = paragraph37.TextParts;
textParts37.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart37 = textParts37[0];
textPart37.Text = "1800";
IFont font37 = textPart37.Font;
font37.FontName = "Arial";
font37.FontSize = 14;
ICell cell38 = row3.Cells[7];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs38 = cell38.TextBody.Paragraphs;
paragraphs38.Add();
IParagraph paragraph38 = paragraphs38[0];
paragraph38.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts38 = paragraph38.TextParts;
textParts38.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart38 = textParts38[0];
textPart38.Text = "13000";
IFont font38 = textPart38.Font;
font38.FontName = "Arial";
font38.FontSize = 14;
ICell cell39 = row3.Cells[8];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs39 = cell39.TextBody.Paragraphs;
paragraphs39.Add();
IParagraph paragraph39 = paragraphs39[0];
paragraph39.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts39 = paragraph39.TextParts;
textParts39.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart39 = textParts39[0];
textPart39.Text = "18000";
IFont font39 = textPart39.Font;
font39.FontName = "Arial";
font39.FontSize = 14;
IRow row4 = table.Rows[3];
row2.Height = 34.90;
ICell cell41 = row4.Cells[0];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs41 = cell41.TextBody.Paragraphs;
paragraphs41.Add();
IParagraph paragraph41 = paragraphs41[0];
paragraph41.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts41 = paragraph41.TextParts;
textParts41.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart41 = textParts41[0];
textPart41.Text = "Mar";
IFont font41 = textPart41.Font;
font41.FontName = "Arial";
font41.FontSize = 14;
ICell cell42 = row4.Cells[1];
IParagraphs paragraphs42 = cell42.TextBody.Paragraphs;
paragraphs42.Add();
IParagraph paragraph42 = paragraphs42[0];
paragraph42.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts42 = paragraph42.TextParts;
textParts42.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart42 = textParts42[0];
textPart42.Text = "4600";
IFont font42 = textPart42.Font;
font42.FontName = "Arial";
font42.FontSize = 14;
ICell cell43 = row4.Cells[2];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs43 = cell43.TextBody.Paragraphs;
paragraphs43.Add();
IParagraph paragraph43 = paragraphs43[0];
paragraph43.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts43 = paragraph43.TextParts;
textParts43.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart43 = textParts43[0];
textPart43.Text = "9000";
IFont font43 = textPart43.Font;
font43.FontName = "Arial";
font43.FontSize = 14;
ICell cell44 = row4.Cells[3];
IParagraphs paragraphs44 = cell44.TextBody.Paragraphs;
paragraphs44.Add();
IParagraph paragraph44 = paragraphs44[0];
paragraph44.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts44 = paragraph44.TextParts;
textParts44.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart44 = textParts44[0];
textPart44.Text = "7500";
IFont font44 = textPart44.Font;
font44.FontName = "Arial";
font44.FontSize = 14;
ICell cell45 = row4.Cells[4];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs45 = cell45.TextBody.Paragraphs;
paragraphs45.Add();
IParagraph paragraph45 = paragraphs45[0];
paragraph45.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts45 = paragraph45.TextParts;
textParts45.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart45 = textParts45[0];
textPart45.Text = "8000";
IFont font45 = textPart45.Font;
font45.FontName = "Arial";
font45.FontSize = 14;
ICell cell46 = row4.Cells[5];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs46 = cell46.TextBody.Paragraphs;
paragraphs46.Add();
IParagraph paragraph46 = paragraphs46[0];
paragraph46.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts46 = paragraph46.TextParts;
textParts46.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart46 = textParts46[0];
textPart46.Text = "30000";
IFont font46 = textPart46.Font;
font46.FontName = "Arial";
font46.FontSize = 14;
ICell cell47 = row4.Cells[6];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs47 = cell47.TextBody.Paragraphs;
paragraphs47.Add();
IParagraph paragraph47 = paragraphs47[0];
paragraph47.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts47 = paragraph47.TextParts;
textParts47.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart47 = textParts47[0];
textPart47.Text = "22000";
IFont font47 = textPart47.Font;
font47.FontName = "Arial";
font47.FontSize = 14;
ICell cell48 = row4.Cells[7];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs48 = cell48.TextBody.Paragraphs;
paragraphs48.Add();
IParagraph paragraph48 = paragraphs48[0];
paragraph48.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts48 = paragraph48.TextParts;
textParts48.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart48 = textParts48[0];
textPart48.Text = "4500";
IFont font48 = textPart48.Font;
font48.FontName = "Arial";
font48.FontSize = 14;
ICell cell49 = row4.Cells[8];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs49 = cell49.TextBody.Paragraphs;
paragraphs49.Add();
IParagraph paragraph49 = paragraphs49[0];
paragraph49.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts49 = paragraph49.TextParts;
textParts49.Add();
ITextPart textPart49 = textParts49[0];
textPart49.Text = "13200";
IFont font49 = textPart49.Font;
font49.FontName = "Arial";
font49.FontSize = 14;
IRow row5 = table.Rows[4];
row2.Height = 34.90;
ICell cell51 = row5.Cells[0];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs51 = cell51.TextBody.Paragraphs;
paragraphs51.Add();
IParagraph paragraph51 = paragraphs51[0];
paragraph51.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts51 = paragraph51.TextParts;
textParts51.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart51 = textParts51[0];
textPart51.Text = "Apr";
IFont font51 = textPart51.Font;
font51.FontName = "Arial";
font51.FontSize = 14;
ICell cell52 = row5.Cells[1];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs52 = cell52.TextBody.Paragraphs;
paragraphs52.Add();
IParagraph paragraph52 = paragraphs52[0];
paragraph52.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts52 = paragraph52.TextParts;
textParts52.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart52 = textParts52[0];
textPart52.Text = "3530";
IFont font52 = textPart52.Font;
font52.FontName = "Arial";
font52.FontSize = 14;
ICell cell53 = row5.Cells[2];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs53 = cell53.TextBody.Paragraphs;
paragraphs53.Add();
IParagraph paragraph53 = paragraphs53[0];
paragraph53.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts53 = paragraph53.TextParts;
textParts53.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart53 = textParts53[0];
textPart53.Text = "13430";
IFont font53 = textPart53.Font;
font53.FontName = "Arial";
font53.FontSize = 14;
ICell cell54 = row5.Cells[3];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs54 = cell54.TextBody.Paragraphs;
paragraphs54.Add();
IParagraph paragraph54 = paragraphs54[0];
paragraph54.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts54 = paragraph54.TextParts;
textParts54.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart54 = textParts54[0];
textPart54.Text = "3550";
IFont font54 = textPart54.Font;
font54.FontName = "Arial";
font54.FontSize = 14;
ICell cell55 = row5.Cells[4];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs55 = cell55.TextBody.Paragraphs;
paragraphs55.Add();
IParagraph paragraph55 = paragraphs55[0];
paragraph55.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts55 = paragraph55.TextParts;
textParts55.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart55 = textParts55[0];
textPart55.Text = "10670";
IFont font55 = textPart55.Font;
font55.FontName = "Arial";
font55.FontSize = 14;
ICell cell56 = row5.Cells[5];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs56 = cell56.TextBody.Paragraphs;
paragraphs56.Add();
IParagraph paragraph56 = paragraphs56[0];
paragraph56.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts56 = paragraph56.TextParts;
textParts56.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart56 = textParts56[0];
textPart56.Text = "27860";
IFont font56 = textPart56.Font;
font56.FontName = "Arial";
font56.FontSize = 14;
ICell cell57 = row5.Cells[6];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs57 = cell57.TextBody.Paragraphs;
paragraphs57.Add();
IParagraph paragraph57 = paragraphs57[0];
paragraph57.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts57 = paragraph57.TextParts;
textParts57.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart57 = textParts57[0];
textPart57.Text = "5414";
IFont font57 = textPart57.Font;
font57.FontName = "Arial";
font57.FontSize = 14;
ICell cell58 = row5.Cells[7];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs58 = cell58.TextBody.Paragraphs;
paragraphs58.Add();
IParagraph paragraph58 = paragraphs58[0];
paragraph58.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts58 = paragraph58.TextParts;
textParts58.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart58 = textParts58[0];
textPart58.Text = "5600";
IFont font58 = textPart58.Font;
font58.FontName = "Arial";
font58.FontSize = 14;
ICell cell59 = row5.Cells[8];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs59 = cell59.TextBody.Paragraphs;
paragraphs59.Add();
IParagraph paragraph59 = paragraphs59[0];
paragraph59.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts59 = paragraph59.TextParts;
textParts59.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart59 = textParts59[0];
textPart59.Text = "50000";
IFont font59 = textPart59.Font;
font59.FontName = "Arial";
font59.FontSize = 14;
//To set row height
IRow row6 = table.Rows[5];
row6.Height = 34.90;
ICell cell61 = row6.Cells[0];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs61 = cell61.TextBody.Paragraphs;
paragraphs61.Add();
IParagraph paragraph61 = paragraphs61[0];
paragraph61.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts61 = paragraph61.TextParts;
textParts61.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart61 = textParts61[0];
textPart61.Text = "May";
IFont font61 = textPart61.Font;
font61.FontName = "Arial";
font61.FontSize = 14;
ICell cell62 = row6.Cells[1];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs62 = cell62.TextBody.Paragraphs;
paragraphs62.Add();
IParagraph paragraph62 = paragraphs62[0];
paragraph62.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts62 = paragraph62.TextParts;
textParts62.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart62 = textParts62[0];
textPart62.Text = "10293";
IFont font62 = textPart62.Font;
font62.FontName = "Arial";
font62.FontSize = 14;
ICell cell63 = row6.Cells[2];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs63 = cell63.TextBody.Paragraphs;
paragraphs63.Add();
IParagraph paragraph63 = paragraphs63[0];
paragraph63.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts63 = paragraph63.TextParts;
textParts63.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart63 = textParts63[0];
textPart63.Text = "23760";
IFont font63 = textPart63.Font;
font63.FontName = "Arial";
font63.FontSize = 14;
ICell cell64 = row6.Cells[3];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs64 = cell64.TextBody.Paragraphs;
paragraphs64.Add();
IParagraph paragraph64 = paragraphs64[0];
paragraph64.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts64 = paragraph64.TextParts;
textParts64.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart64 = textParts64[0];
textPart64.Text = "10378";
IFont font64 = textPart64.Font;
font64.FontName = "Arial";
font64.FontSize = 14;
ICell cell65 = row6.Cells[4];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs65 = cell65.TextBody.Paragraphs;
paragraphs65.Add();
IParagraph paragraph65 = paragraphs65[0];
paragraph65.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts65 = paragraph65.TextParts;
textParts65.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart65 = textParts65[0];
textPart65.Text = "24857";
IFont font65 = textPart65.Font;
font65.FontName = "Arial";
font65.FontSize = 14;
ICell cell66 = row6.Cells[5];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs66 = cell66.TextBody.Paragraphs;
paragraphs66.Add();
IParagraph paragraph66 = paragraphs66[0];
paragraph66.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts66 = paragraph66.TextParts;
textParts66.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart66 = textParts66[0];
textPart66.Text = "12104";
IFont font66 = textPart66.Font;
font66.FontName = "Arial";
font66.FontSize = 14;
ICell cell67 = row6.Cells[6];
//Instance to hold paragraphs in cell.
IParagraphs paragraphs67 = cell67.TextBody.Paragraphs;
paragraphs67.Add();
IParagraph paragraph67 = paragraphs67[0];
paragraph67.HorizontalAlignment = HorizontalAlignmentType.Left;
ITextParts textParts67 = paragraph67.TextParts;
textParts67.Add();
//Creates a textpart and assigns value to it.
ITextPart textPart67 = textParts67[0];
textPart67.Text = "21350";