예제 #1
0
 //=========================================================================================
 internal TextCaret(CodeViewerBody parent)
 {
     this.Parent = parent;
     if (this.Parent != null)
     {
         this.Doc = parent.Viewer.Document;
     }
 }
예제 #2
0
        //=========================================================================================
        #region Component Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this._Body = new CodeViewerBody();
            this.SuspendLayout();
            //
            // _Body
            //
            this._Body.Cursor   = System.Windows.Forms.Cursors.IBeam;
            this._Body.Dock     = System.Windows.Forms.DockStyle.Fill;
            this._Body.Location = new System.Drawing.Point(1, 1);
            this._Body.Name     = "_Body";
            this._Body.Size     = new System.Drawing.Size(198, 198);
            this._Body.TabIndex = 0;
            //
            // CodeViewer
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
            this.Controls.Add(this._Body);
            this.Name    = "CodeViewer";
            this.Padding = new System.Windows.Forms.Padding(1);
            this.Size    = new System.Drawing.Size(200, 200);
            this.ResumeLayout(false);
        }
		//=========================================================================================
		public DocumentViewRenderer(CodeViewer viewer)
		{
			this.Viewer = viewer;
			this.Body = this.Viewer.Body;
			this.Viewer.BackColorChanged += new EventHandler(Viewer_BackColorChanged);
		}
 //=========================================================================================
 public DocumentViewRenderer(CodeViewer viewer)
 {
     this.Viewer = viewer;
     this.Body   = this.Viewer.Body;
     this.Viewer.BackColorChanged += new EventHandler(Viewer_BackColorChanged);
 }
예제 #5
0
		//=========================================================================================
		internal TextCaret(CodeViewerBody parent)
		{
			this.Parent = parent;
			if (this.Parent != null)
				this.Doc = parent.Viewer.Document;
		}
예제 #6
0
		//=========================================================================================
		#region Component Designer generated code

		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this._Body = new CodeViewerBody();
			this.SuspendLayout();
			// 
			// _Body
			// 
			this._Body.Cursor = System.Windows.Forms.Cursors.IBeam;
			this._Body.Dock = System.Windows.Forms.DockStyle.Fill;
			this._Body.Location = new System.Drawing.Point(1, 1);
			this._Body.Name = "_Body";
			this._Body.Size = new System.Drawing.Size(198, 198);
			this._Body.TabIndex = 0;
			// 
			// CodeViewer
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
			this.Controls.Add(this._Body);
			this.Name = "CodeViewer";
			this.Padding = new System.Windows.Forms.Padding(1);
			this.Size = new System.Drawing.Size(200, 200);
			this.ResumeLayout(false);

		}