protected void FlattenTabStops(TabStops tabStops, TabStops refTabStops) { if (!tabStops._fClearAll) { foreach (TabStop refTabStop in refTabStops) { if (tabStops.GetTabStopAt(refTabStop.Position) == null && refTabStop.AddTab) { tabStops.AddTabStop(refTabStop.Position, refTabStop.Alignment, refTabStop.Leader); } } } for (int i = 0; i < tabStops.Count; i++) { TabStop tabStop = tabStops[i]; if (!tabStop.AddTab) { tabStops.RemoveObjectAt(i); } } // The TabStopCollection is complete now. // Prevent inheritence of tab stops. tabStops._fClearAll = true; }
protected void FlattenTabStops(TabStops tabStops, TabStops refTabStops) { if (!tabStops.fClearAll) { foreach (TabStop refTabStop in refTabStops) { if (tabStops.GetTabStopAt(refTabStop.Position) == null && refTabStop.AddTab) { tabStops.AddTabStop(refTabStop.Position, refTabStop.Alignment, refTabStop.Leader); } } } for (int i = 0; i < tabStops.Count; i++) { TabStop tabStop = tabStops[i]; if (!tabStop.AddTab) { tabStops.RemoveObjectAt(i); } } //Die TabStopCollection ist so wie sie jetzt ist vollständig. //Sie darf daher nichts erben, d.h. : tabStops.fClearAll = true; }
protected void FlattenTabStops(TabStops tabStops, TabStops refTabStops) { if (!tabStops._fClearAll) { foreach (TabStop refTabStop in refTabStops) { if (tabStops.GetTabStopAt(refTabStop.Position) == null && refTabStop.AddTab) tabStops.AddTabStop(refTabStop.Position, refTabStop.Alignment, refTabStop.Leader); } } for (int i = 0; i < tabStops.Count; i++) { TabStop tabStop = tabStops[i]; if (!tabStop.AddTab) tabStops.RemoveObjectAt(i); } // The TabStopCollection is complete now. // Prevent inheritence of tab stops. tabStops._fClearAll = true; }
protected void FlattenTabStops(TabStops tabStops, TabStops refTabStops) { if (!tabStops.fClearAll) { foreach (TabStop refTabStop in refTabStops) { if (tabStops.GetTabStopAt(refTabStop.Position) == null && refTabStop.AddTab) tabStops.AddTabStop(refTabStop.Position, refTabStop.Alignment, refTabStop.Leader); } } for (int i = 0; i < tabStops.Count; i++) { TabStop tabStop = tabStops[i]; if (!tabStop.AddTab) tabStops.RemoveObjectAt(i); } //Die TabStopCollection ist so wie sie jetzt ist vollständig. //Sie darf daher nichts erben, d.h. : tabStops.fClearAll = true; }