BioImager  4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
BioImager.CodeView Class Reference
Inheritance diagram for BioImager.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

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()

BioImager.CodeView.CodeView ( )

Definition at line 19 of file CodeView.cs.

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

Member Function Documentation

◆ Dispose()

override void BioImager.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 BioImager.CodeView.UpdateScroll ( )

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

Definition at line 59 of file CodeView.cs.

60 {
61 lineBox.VerticalScrollPosition = textBox.VerticalScrollPosition;
62 }

Property Documentation

◆ TextBox

RichTextBox BioImager.CodeView.TextBox
get

Definition at line 37 of file CodeView.cs.

38 {
39 get
40 {
41 return textBox;
42 }
43 }

◆ WordWrap

bool BioImager.CodeView.WordWrap
getset

Definition at line 47 of file CodeView.cs.

48 {
49 get
50 {
51 return textBox.WordWrap;
52 }
53 set
54 {
55 textBox.WordWrap = value;
56 }
57 }

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