BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
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. More...
 

Protected Member Functions

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

Properties

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

Detailed Description

Definition at line 13 of file CodeView.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:58

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 58 of file CodeView.cs.

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

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 46 of file CodeView.cs.

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

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