override public void Setup_BeforeAdd(ByteBuffer buffer, int beginPos) { base.Setup_BeforeAdd(buffer, beginPos); buffer.Seek(beginPos, 5); _layout = (GroupLayoutType)buffer.ReadByte(); _lineGap = buffer.ReadInt(); _columnGap = buffer.ReadInt(); }
override public void Setup_BeforeAdd(XML xml) { base.Setup_BeforeAdd(xml); string str; str = xml.GetAttribute("layout"); if (str != null) { _layout = FieldTypes.ParseGroupLayoutType(str); _lineGap = xml.GetAttributeInt("lineGap"); _columnGap = xml.GetAttributeInt("colGap"); } }
override public void Setup_BeforeAdd(ByteBuffer buffer, int beginPos) { base.Setup_BeforeAdd(buffer, beginPos); buffer.Seek(beginPos, 5); _layout = (GroupLayoutType)buffer.ReadByte(); _lineGap = buffer.ReadInt(); _columnGap = buffer.ReadInt(); if (buffer.version >= 2) { _excludeInvisibles = buffer.ReadBool(); _autoSizeDisabled = buffer.ReadBool(); _mainChildIndex = buffer.ReadShort(); } }