public BindingContextElement(IBindingContextPart parent, object dataSource, int index) { BindingContextItems = new List <IBindingContextItem>(); LinkedBindingContexts = new List <IBindingContext>(); ParentPart = parent; DataSource = dataSource; Index = index; Init(); }
//public bool isExpander = false; #endregion #region .ctors and factories protected ExcelPartRenderer(ExcelRenderer parent, ExcelTemplateDefinitionPart part, IBindingContextPart bindingContextPart, ExcelInterop.Range firstOutputCell, bool useDecorator) { Parent = parent; partToRenderDefinition = part; this.bindingContextPart = bindingContextPart; this.useDecorator = useDecorator; currentRenderingFrom = partToRenderDefinition.DefinitionFirstCell; firstRangeTo = firstOutputCell; elementFirstRangeTo = firstOutputCell; currentRenderingTo = firstOutputCell; Height = Width = 0; }
public static ExcelPartRenderer CreateInstance(ExcelRenderer parent, ExcelTemplateDefinitionPart part, IBindingContextPart bindingContextPart, ExcelInterop.Range firstOutputCell, bool useDecorator) { if (part.Parent.Orientation == Orientation.Vertical) { return(new ExcelPartVerticalRenderer(parent, part, bindingContextPart, firstOutputCell, useDecorator)); } return(new ExcelPartHorozontalRenderer(parent, part, bindingContextPart, firstOutputCell, useDecorator)); }
public ExcelPartHorozontalRenderer(ExcelRenderer parent, ExcelTemplateDefinitionPart part, IBindingContextPart bindingContextPart, ExcelInterop.Range firstOutputCell, bool useDecorator) : base(parent, part, bindingContextPart, firstOutputCell, useDecorator) { }