C# Class System.Windows.Forms.HexBox

Inheritance: Control
Show file Open project: Zepheus/Fiesta_Utils Class Usage Examples

Private Properties

Property Type Description
ActivateEmptyKeyInterpreter void
ActivateKeyInterpreter void
ActivateStringKeyInterpreter void
BasePreProcessMessage bool
CheckCurrentLineChanged void
CheckCurrentPositionInLineChanged void
CreateCaret void
DestroyCaret void
FromScrollPos long
GetBytePointF System.Drawing.PointF
GetBytePointF System.Drawing.PointF
GetByteStringPointF System.Drawing.PointF
GetDefaultForeColor Color
GetGridBytePoint Point
GetHexBytePositionInfo BytePositionInfo
GetStringBytePositionInfo BytePositionInfo
InternalSelect void
PaintCurrentByteSign void
PaintCurrentBytesSign void
PaintHex void
PaintHexAndStringView void
PaintHexString void
PaintHexStringSelected void
PaintLineInfo void
PerformScrollLineDown void
PerformScrollLineUp void
PerformScrollLines void
PerformScrollPageDown void
PerformScrollPageUp void
PerformScrollThumbTrack void
PerformScrollThumpPosition void
PerformScrollToLine void
PreProcessMessage bool
ReleaseSelection void
SetCaretPosition void
SetHorizontalByteCount void
SetPosition void
SetPosition void
SetSelectionLength void
SetVerticalByteCount void
ToScrollMax int
ToScrollPos int
UpdateCaret void
UpdateRectanglePositioning void
UpdateScrollSize void
UpdateVScroll void
UpdateVisibilityBytes void
_byteProvider_LengthChanged void
_vScrollBar_Scroll void

Public Methods

Method Description
AbortFind ( ) : void

Aborts a working Find method.

CanCopy ( ) : bool

Return true if Copy method could be invoked.

CanCut ( ) : bool

Return true if Cut method could be invoked.

CanPaste ( ) : bool

Return true if Paste method could be invoked.

Copy ( ) : void

Copies the current selection in the hex box to the Clipboard.

Cut ( ) : void

Moves the current selection in the hex box to the Clipboard.

Find ( byte bytes, long startIndex ) : long

Searches the current ByteProvider

HexBox ( ) : System

Initializes a new instance of a HexBox class.

Paste ( ) : void

Replaces the current selection in the hex box with the contents of the Clipboard.

ScrollByteIntoView ( ) : void

Scrolls the selection start byte into view

ScrollByteIntoView ( long index ) : void

Scrolls the specific byte into view

Select ( long start, long length ) : void

Selects the hex box.

Protected Methods

Method Description
OnBorderStyleChanged ( EventArgs e ) : void

Raises the BorderStyleChanged event.

OnByteProviderChanged ( EventArgs e ) : void

Raises the ByteProviderChanged event.

OnBytesPerLineChanged ( EventArgs e ) : void

Raises the BytesPerLineChanged event.

OnCurrentLineChanged ( EventArgs e ) : void

Raises the CurrentLineChanged event.

OnCurrentPositionInLineChanged ( EventArgs e ) : void

Raises the CurrentPositionInLineChanged event.

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event.

OnHexCasingChanged ( EventArgs e ) : void

Raises the HexCasingChanged event.

OnHorizontalByteCountChanged ( EventArgs e ) : void

Raises the HorizontalByteCountChanged event.

OnInsertActiveChanged ( EventArgs e ) : void

Raises the InsertActiveChanged event.

OnLineInfoVisibleChanged ( EventArgs e ) : void

Raises the LineInfoVisibleChanged event.

OnLostFocus ( EventArgs e ) : void

Raises the LostFocus event.

OnMouseDown ( MouseEventArgs e ) : void

Raises the MouseDown event.

OnMouseWheel ( MouseEventArgs e ) : void

Raises the MouseWhell event

OnPaint ( PaintEventArgs e ) : void

Paints the hex box.

OnPaintBackground ( PaintEventArgs e ) : void

Paints the background.

OnReadOnlyChanged ( EventArgs e ) : void

Raises the ReadOnlyChanged event.

OnResize ( EventArgs e ) : void

Raises the Resize event.

OnSelectionLengthChanged ( EventArgs e ) : void

Raises the SelectionLengthChanged event.

OnSelectionStartChanged ( EventArgs e ) : void

Raises the SelectionStartChanged event.

OnStringViewVisibleChanged ( EventArgs e ) : void

Raises the StringViewVisibleChanged event.

OnUseFixedBytesPerLineChanged ( EventArgs e ) : void

Raises the UseFixedBytesPerLineChanged event.

OnVScrollBarVisibleChanged ( EventArgs e ) : void

Raises the VScrollBarVisibleChanged event.

OnVerticalByteCountChanged ( EventArgs e ) : void

Raises the VerticalByteCountChanged event.

Private Methods

Method Description
ActivateEmptyKeyInterpreter ( ) : void
ActivateKeyInterpreter ( ) : void
ActivateStringKeyInterpreter ( ) : void
BasePreProcessMessage ( Message &m ) : bool
CheckCurrentLineChanged ( ) : void
CheckCurrentPositionInLineChanged ( ) : void
CreateCaret ( ) : void
DestroyCaret ( ) : void
FromScrollPos ( int value ) : long
GetBytePointF ( Point gp ) : PointF
GetBytePointF ( long byteIndex ) : PointF
GetByteStringPointF ( Point gp ) : PointF
GetDefaultForeColor ( ) : Color
GetGridBytePoint ( long byteIndex ) : Point
GetHexBytePositionInfo ( Point p ) : BytePositionInfo
GetStringBytePositionInfo ( Point p ) : BytePositionInfo
InternalSelect ( long start, long length ) : void
PaintCurrentByteSign ( Graphics g, Rectangle rec ) : void
PaintCurrentBytesSign ( Graphics g ) : void
PaintHex ( Graphics g, long startByte, long endByte ) : void
PaintHexAndStringView ( Graphics g, long startByte, long endByte ) : void
PaintHexString ( Graphics g, byte b, Brush brush, Point gridPoint ) : void
PaintHexStringSelected ( Graphics g, byte b, Brush brush, Brush brushBack, Point gridPoint ) : void
PaintLineInfo ( Graphics g, long startByte, long endByte ) : void
PerformScrollLineDown ( ) : void
PerformScrollLineUp ( ) : void
PerformScrollLines ( int lines ) : void
PerformScrollPageDown ( ) : void
PerformScrollPageUp ( ) : void
PerformScrollThumbTrack ( object sender, EventArgs e ) : void

Performs the thumbtrack scrolling after an delay.

PerformScrollThumpPosition ( long pos ) : void
PerformScrollToLine ( long pos ) : void
PreProcessMessage ( Message &m ) : bool
ReleaseSelection ( ) : void
SetCaretPosition ( Point p ) : void
SetHorizontalByteCount ( int value ) : void
SetPosition ( long bytePos ) : void
SetPosition ( long bytePos, int byteCharacterPos ) : void
SetSelectionLength ( long selectionLength ) : void
SetVerticalByteCount ( int value ) : void
ToScrollMax ( long value ) : int
ToScrollPos ( long value ) : int
UpdateCaret ( ) : void
UpdateRectanglePositioning ( ) : void
UpdateScrollSize ( ) : void
UpdateVScroll ( ) : void
UpdateVisibilityBytes ( ) : void
_byteProvider_LengthChanged ( object sender, EventArgs e ) : void
_vScrollBar_Scroll ( object sender, ScrollEventArgs e ) : void

Method Details

AbortFind() public method

Aborts a working Find method.
public AbortFind ( ) : void
return void

CanCopy() public method

Return true if Copy method could be invoked.
public CanCopy ( ) : bool
return bool

CanCut() public method

Return true if Cut method could be invoked.
public CanCut ( ) : bool
return bool

CanPaste() public method

Return true if Paste method could be invoked.
public CanPaste ( ) : bool
return bool

Copy() public method

Copies the current selection in the hex box to the Clipboard.
public Copy ( ) : void
return void

Cut() public method

Moves the current selection in the hex box to the Clipboard.
public Cut ( ) : void
return void

Find() public method

Searches the current ByteProvider
public Find ( byte bytes, long startIndex ) : long
bytes byte the array of bytes to find
startIndex long the start index
return long

HexBox() public method

Initializes a new instance of a HexBox class.
public HexBox ( ) : System
return System

OnBorderStyleChanged() protected method

Raises the BorderStyleChanged event.
protected OnBorderStyleChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnByteProviderChanged() protected method

Raises the ByteProviderChanged event.
protected OnByteProviderChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnBytesPerLineChanged() protected method

Raises the BytesPerLineChanged event.
protected OnBytesPerLineChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnCurrentLineChanged() protected method

Raises the CurrentLineChanged event.
protected OnCurrentLineChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnCurrentPositionInLineChanged() protected method

Raises the CurrentPositionInLineChanged event.
protected OnCurrentPositionInLineChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnGotFocus() protected method

Raises the GotFocus event.
protected OnGotFocus ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnHexCasingChanged() protected method

Raises the HexCasingChanged event.
protected OnHexCasingChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnHorizontalByteCountChanged() protected method

Raises the HorizontalByteCountChanged event.
protected OnHorizontalByteCountChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnInsertActiveChanged() protected method

Raises the InsertActiveChanged event.
protected OnInsertActiveChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnLineInfoVisibleChanged() protected method

Raises the LineInfoVisibleChanged event.
protected OnLineInfoVisibleChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnLostFocus() protected method

Raises the LostFocus event.
protected OnLostFocus ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnMouseDown() protected method

Raises the MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs An EventArgs that contains the event data.
return void

OnMouseWheel() protected method

Raises the MouseWhell event
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs An EventArgs that contains the event data.
return void

OnPaint() protected method

Paints the hex box.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data.
return void

OnPaintBackground() protected method

Paints the background.
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data.
return void

OnReadOnlyChanged() protected method

Raises the ReadOnlyChanged event.
protected OnReadOnlyChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnResize() protected method

Raises the Resize event.
protected OnResize ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnSelectionLengthChanged() protected method

Raises the SelectionLengthChanged event.
protected OnSelectionLengthChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnSelectionStartChanged() protected method

Raises the SelectionStartChanged event.
protected OnSelectionStartChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnStringViewVisibleChanged() protected method

Raises the StringViewVisibleChanged event.
protected OnStringViewVisibleChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnUseFixedBytesPerLineChanged() protected method

Raises the UseFixedBytesPerLineChanged event.
protected OnUseFixedBytesPerLineChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnVScrollBarVisibleChanged() protected method

Raises the VScrollBarVisibleChanged event.
protected OnVScrollBarVisibleChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

OnVerticalByteCountChanged() protected method

Raises the VerticalByteCountChanged event.
protected OnVerticalByteCountChanged ( EventArgs e ) : void
e EventArgs An EventArgs that contains the event data.
return void

Paste() public method

Replaces the current selection in the hex box with the contents of the Clipboard.
public Paste ( ) : void
return void

ScrollByteIntoView() public method

Scrolls the selection start byte into view
public ScrollByteIntoView ( ) : void
return void

ScrollByteIntoView() public method

Scrolls the specific byte into view
public ScrollByteIntoView ( long index ) : void
index long the index of the byte
return void

Select() public method

Selects the hex box.
public Select ( long start, long length ) : void
start long the start index of the selection
length long the length of the selection
return void