BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
BioCore.CodeView Class Reference
Inheritance diagram for BioCore.CodeView:

Classes

class  ScrollTextBox
 TextBox with support for getting and setting the vertical scroll bar position, as well as listening to vertical scroll events. More...
 

Public Member Functions

 CodeView ()
 
void UpdateScroll ()
 The lineBox's vertical scroll position is set to the textBox's vertical scroll position.
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.
 

Properties

RichTextBox TextBox [get]
 
bool WordWrap [get, set]
 

Detailed Description

Definition at line 4 of file CodeView.Designer.cs.

Constructor & Destructor Documentation

◆ CodeView()

BioCore.CodeView.CodeView ( )

Definition at line 11 of file CodeView.cs.

12 {
13 InitializeComponent();
14 textBox.Dock = DockStyle.Fill;
15 textBox.MouseWheel += new MouseEventHandler(Code_MouseWheel);
16 textBox.TextChanged += new EventHandler(textBox_TextChanged);
17 textBox.VScroll += new EventHandler(textBox_Scroll);
18 textBox.FontChanged += new EventHandler(textBox_FontChanged);
19 textBox.WordWrap = false;
20 textBox.AcceptsTab = true;
21 panel.Controls.Add(textBox);
22 lineBox.Dock = DockStyle.Fill;
23 lineBox.ScrollBars = RichTextBoxScrollBars.None;
24 panel2.Controls.Add(lineBox);
25 //MouseWheel += new MouseEventHandler(Code_MouseWheel);
26 textBox.SelectionTabs = new int[] { tabSize, tabSize * 2, tabSize * 3, tabSize * 4, tabSize * 5, tabSize * 6 };
28 }
void UpdateScroll()
The lineBox's vertical scroll position is set to the textBox's vertical scroll position.
Definition CodeView.cs:52

Member Function Documentation

◆ Dispose()

override void BioCore.CodeView.Dispose ( bool disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

Definition at line 15 of file CodeView.Designer.cs.

16 {
17 if (disposing && (components != null))
18 {
19 components.Dispose();
20 }
21 base.Dispose(disposing);
22 }

◆ UpdateScroll()

void BioCore.CodeView.UpdateScroll ( )

The lineBox's vertical scroll position is set to the textBox's vertical scroll position.

Definition at line 52 of file CodeView.cs.

53 {
54 lineBox.VerticalScrollPosition = textBox.VerticalScrollPosition;
55 }

Property Documentation

◆ TextBox

RichTextBox BioCore.CodeView.TextBox
get

Definition at line 30 of file CodeView.cs.

31 {
32 get
33 {
34 return textBox;
35 }
36 }

◆ WordWrap

bool BioCore.CodeView.WordWrap
getset

Definition at line 40 of file CodeView.cs.

41 {
42 get
43 {
44 return textBox.WordWrap;
45 }
46 set
47 {
48 textBox.WordWrap = value;
49 }
50 }

The documentation for this class was generated from the following files: