private void ApplyMisc(SLStyle cellStyle, DocumentModel.CellStyle style) { cellStyle.Alignment.Indent = style.Indent; cellStyle.Alignment.WrapText = style.WrapText; cellStyle.Alignment.TextRotation = style.Rotation; cellStyle.Alignment.ShrinkToFit = style.ShrinkToFit; }
private void ApplyStyle(SLStyle cellStyle, DocumentModel.CellStyle style) { this.ApplyHorizontalAlignment(cellStyle, style.HorizontalAlignment); this.ApplyVerticalStyle(cellStyle, style.VerticalAlignment); this.ApplyBorderStyle(cellStyle.Border.TopBorder, style.BorderStyleTop); this.ApplyBorderStyle(cellStyle.Border.LeftBorder, style.BorderStyleLeft); this.ApplyBorderStyle(cellStyle.Border.RightBorder, style.BorderStyleRight); this.ApplyBorderStyle(cellStyle.Border.BottomBorder, style.BorderStyleBottom); this.ApplyBorderStyle(cellStyle.Border.DiagonalBorder, style.BorderStyleDiagonalUpLeftToBottomRight); this.ApplyBorderStyle(cellStyle.Border.DiagonalBorder, style.BorderStyleDiagonalUpRightToBottomLeft); this.ApplyBorderDiagonalStyle(cellStyle.Border, style.BorderStyleDiagonalUpLeftToBottomRight, style.BorderStyleDiagonalUpRightToBottomLeft); this.ApplyFont(cellStyle.Font, style.FontStyle); this.ApplyFill(cellStyle.Fill, style.FillPatternStyle, style.FillPatternColor, style.BackgroundColor); this.ApplyMisc(cellStyle, style); }