C# Class System.Windows.Forms.HexBox

Inheritance: Control
Afficher le fichier Open project: Zepheus/Fiesta_Utils Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Aborts a working Find method.
public AbortFind ( ) : void
Résultat void

CanCopy() public méthode

Return true if Copy method could be invoked.
public CanCopy ( ) : bool
Résultat bool

CanCut() public méthode

Return true if Cut method could be invoked.
public CanCut ( ) : bool
Résultat bool

CanPaste() public méthode

Return true if Paste method could be invoked.
public CanPaste ( ) : bool
Résultat bool

Copy() public méthode

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

Cut() public méthode

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

Find() public méthode

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

HexBox() public méthode

Initializes a new instance of a HexBox class.
public HexBox ( ) : System
Résultat System

OnBorderStyleChanged() protected méthode

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

OnByteProviderChanged() protected méthode

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

OnBytesPerLineChanged() protected méthode

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

OnCurrentLineChanged() protected méthode

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

OnCurrentPositionInLineChanged() protected méthode

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

OnGotFocus() protected méthode

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

OnHexCasingChanged() protected méthode

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

OnHorizontalByteCountChanged() protected méthode

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

OnInsertActiveChanged() protected méthode

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

OnLineInfoVisibleChanged() protected méthode

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

OnLostFocus() protected méthode

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

OnMouseDown() protected méthode

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

OnMouseWheel() protected méthode

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

OnPaint() protected méthode

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

OnPaintBackground() protected méthode

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

OnReadOnlyChanged() protected méthode

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

OnResize() protected méthode

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

OnSelectionLengthChanged() protected méthode

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

OnSelectionStartChanged() protected méthode

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

OnStringViewVisibleChanged() protected méthode

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

OnUseFixedBytesPerLineChanged() protected méthode

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

OnVScrollBarVisibleChanged() protected méthode

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

OnVerticalByteCountChanged() protected méthode

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

Paste() public méthode

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

ScrollByteIntoView() public méthode

Scrolls the selection start byte into view
public ScrollByteIntoView ( ) : void
Résultat void

ScrollByteIntoView() public méthode

Scrolls the specific byte into view
public ScrollByteIntoView ( long index ) : void
index long the index of the byte
Résultat void

Select() public méthode

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
Résultat void