public ElementHLine(short length, Output.OutputObj style, Support.Coord StartPos, ushort NewId) { Output.OutputObj[] element = new Output.OutputObj[length]; for (short i = 0; i < length; ++i) { element[i] = (Output.OutputObj)style.Clone(); } SetElement(element, StartPos, NewId); }
public void SetElement(string ElementStr, Support.Coord StartPos, ushort NewId) { Output.OutputObj[] Element = new Output.OutputObj[ElementStr.Length]; for (int i = 0; i < Element.Length; ++i) { Element[i] = new Output.OutputObj(ElementStr[i]); } Id = NewId; element = (Output.OutputObj[])Element.Clone(); startPos = new Support.Coord(StartPos.x, StartPos.y); }