/** * Write the definition part of the colour list. Calls the writeDefinition * methods of the RtfColors in the colour list. */ public virtual void WriteDefinition(Stream result) { result.Write(OPEN_GROUP, 0, OPEN_GROUP.Length); result.Write(COLOR_TABLE, 0, COLOR_TABLE.Length); for (int i = 0; i < colorList.Count; i++) { RtfColor color = (RtfColor)colorList[i]; color.WriteDefinition(result); } result.Write(CLOSE_GROUP, 0, CLOSE_GROUP.Length); this.document.OutputDebugLinebreak(result); }