Click here to Skip to main content
15,867,686 members
Articles / Programming Languages / C#

CodeDom Assistant

Rate me:
Please Sign up or sign in to vote.
4.84/5 (26 votes)
21 Sep 20074 min read 136.8K   6.6K   82  
Generating CodeDom Code By Parsing C# or VB
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;


namespace ScintillaNet.Configuration
{
	public class MarginConfigList : List<MarginConfig>
	{
		private bool? _inherit;
		public bool? Inherit
		{
			get
			{
				return _inherit;
			}
			set
			{
				_inherit = value;
			}
		}

		private int? _left;
		public int? Left
		{
			get
			{
				return _left;
			}
			set
			{
				_left = value;
			}
		}

		private int? _right;
		public int? Right
		{
			get
			{
				return _right;
			}
			set
			{
				_right = value;
			}
		}

		private Color _foldMarginColor;
		public Color FoldMarginColor
		{
			get
			{
				return _foldMarginColor;
			}
			set
			{
				_foldMarginColor = value;
			}
		}

		private Color _foldMarginHighlightColor;
		public Color FoldMarginHighlightColor
		{
			get
			{
				return _foldMarginHighlightColor;
			}
			set
			{
				_foldMarginHighlightColor = value;
			}
		} 
	}

	public class MarginConfig
	{
		private int _number;
		public int Number
		{
			get
			{
				return _number;
			}
			set
			{
				_number = value;
			}
		}

		private bool? _inherit;
		public bool? Inherit
		{
			get
			{
				return _inherit;
			}
			set
			{
				_inherit = value;
			}
		}


		private MarginType? _type;
		public MarginType? Type
		{
			get
			{
				return _type;
			}
			set
			{
				_type = value;
			}
		}

		private bool? _isFoldMargin;
		public bool? IsFoldMargin
		{
			get
			{
				return _isFoldMargin;
			}
			set
			{
				_isFoldMargin = value;
			}
		}

		private bool? _isMarkerMargin;
		public bool? IsMarkerMargin
		{
			get
			{
				return _isMarkerMargin;
			}
			set
			{
				_isMarkerMargin = value;
			}
		}

		private int? _width;
		public int? Width
		{
			get
			{
				return _width;
			}
			set
			{
				_width = value;
			}
		}

		private bool? _isClickable;
		public bool? IsClickable
		{
			get
			{
				return _isClickable;
			}
			set
			{
				_isClickable = value;
			}
		}

		private int? _autoToggleMarkerNumber;
		public int? AutoToggleMarkerNumber
		{
			get
			{
				return _autoToggleMarkerNumber;
			}
			set
			{
				_autoToggleMarkerNumber = value;
			}
		}

	}

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions