internal static Table FromTableInfo(TableInfo info, TableDataSet dataSet) { var control = new Table(); Canvas.SetLeft(control, info.Location().X); Canvas.SetTop(control, info.Location().Y); control.TableFontFamily = new FontFamily(info.FontFamily); control.TableFontSize = Helper.ToEmSize(info.FontSize, MainWindow.DpiY);; control.TableFontStyle = info.FontStyle == FontStyles.Italic.ToString() ? FontStyles.Italic : FontStyles.Normal; control.TableFontWeight = FontWeight.FromOpenTypeWeight(info.FontOpenTypeWeight); control.TableFontStretch = FontStretch.FromOpenTypeStretch(info.FontOpenTypeStretch); control.TextFontFamily = new FontFamily(info.TextFontFamily); control.TextFontSize = Helper.ToEmSize(info.TextFontSize, MainWindow.DpiY);; control.TextFontStyle = info.TextFontStyle == FontStyles.Italic.ToString() ? FontStyles.Italic : FontStyles.Normal; control.TextFontWeight = FontWeight.FromOpenTypeWeight(info.TextFontOpenTypeWeight); control.TextFontStretch = FontStretch.FromOpenTypeStretch(info.TextFontOpenTypeStretch); control.XlsColumn = info.XlsColumn; control.Initialize( info.RowCount, info.RowHeight, new GridLength(info.Col0Width, GridUnitType.Pixel), new GridLength(info.Col1Width, GridUnitType.Pixel), new GridLength(info.Col2Width, GridUnitType.Pixel), dataSet); return(control); }
internal TableDataSet Range(int start, int count) { var dataSet = new TableDataSet(); for (int i = start; i < count + start; i++) { dataSet.TableRow.Add(TableRow[i]); } return(dataSet); }
public TableDataSet(TableDataSet source) { }