C# Class dnSpy.Contracts.Hex.Operations.HexEditorOperations

Hex editor operations
Afficher le fichier Open project: 0xd4d/dnSpy Class Usage Examples

Méthodes publiques

Méthode Description
ClearData ( ) : bool

Clears data

CopySelectionBytes ( ) : bool

Copy selection, bytes (as text)

CopySelectionText ( ) : bool

Copy selection, UI text

CopySpecial ( HexCopySpecialKind copyKind ) : bool

Copies text to the clipboard

ExtendSelection ( HexBufferPoint newEnd ) : void

Extend selection

InsertText ( string text ) : bool

Inserts text

MoveCaret ( dnSpy.Contracts.Hex.Formatting.HexViewLine hexLine, double horizontalOffset, bool extendSelection ) : void

Move caret to a line

MoveCaret ( dnSpy.Contracts.Hex.Formatting.HexViewLine hexLine, double horizontalOffset, bool extendSelection, HexMoveToFlags flags ) : void

Move caret to a line

MoveCurrentLineToBottom ( ) : void

Move current line to bottom of the view

MoveCurrentLineToTop ( ) : void

Move current line to top of the view

MoveLineDown ( bool extendSelection ) : void

Move down a line

MoveLineUp ( bool extendSelection ) : void

Move up a line

MoveToBottomOfView ( bool extendSelection ) : void

Move the caret to the bottom of the view

MoveToEndOfDocument ( bool extendSelection ) : void

Move to end of document

MoveToEndOfLine ( bool extendSelection ) : void

Move to the end of the line

MoveToNextCharacter ( bool extendSelection ) : void

Moves the caret to the next character

MoveToNextValidStartEnd ( bool extendSelection ) : void

Move to the next closest start/end position of a block of memory

MoveToNextWord ( bool extendSelection ) : void

Moves the caret to the next word (cell)

MoveToPreviousCharacter ( bool extendSelection ) : void

Moves the caret to the previous character

MoveToPreviousValidStartEnd ( bool extendSelection ) : void

Move to the previous closest start/end position of a block of memory

MoveToPreviousWord ( bool extendSelection ) : void

Moves the caret to the previous word (cell)

MoveToStartOfDocument ( bool extendSelection ) : void

Move to start of document

MoveToStartOfLine ( bool extendSelection ) : void

Move to the start of the line

MoveToTopOfView ( bool extendSelection ) : void

Move the caret to the top of the view

PageDown ( bool extendSelection ) : void

Page down

PageUp ( bool extendSelection ) : void

Page up

Paste ( ) : bool

Paste

PasteSpecial ( HexPasteSpecialKind pasteKind ) : bool

Pastes data from the clipboard

Refresh ( ) : void

Refreshes the screen and clears any read caches

ResetSelection ( ) : void

Reset selection

ScrollColumnLeft ( ) : void

Scoll one column left

ScrollColumnRight ( ) : void

Scoll one column right

ScrollDownAndMoveCaretIfNecessary ( ) : void

Scroll down and move caret so it's within the viewport

ScrollLineBottom ( ) : void

Move current line to the bottom of the view, don't move the caret

ScrollLineCenter ( ) : void

Move current line to the center of the view, don't move the caret

ScrollLineTop ( ) : void

Move current line to the top of the view, don't move the caret

ScrollPageDown ( ) : void

Page down, but don't move caret

ScrollPageUp ( ) : void

Page up, but don't move caret

ScrollUpAndMoveCaretIfNecessary ( ) : void

Scroll up and move caret so it's within the viewport

SelectAll ( ) : void

Select all

SelectAllBytesBlock ( ) : void

Selects all bytes in the current block, unless the caret is in a memory hole

SelectAndMoveCaret ( HexColumnType column, HexBufferPoint anchorPoint, HexBufferPoint activePoint, bool alignPoints ) : void

Selects data and moves the caret

SelectAndMoveCaret ( HexColumnType column, HexBufferPoint anchorPoint, HexBufferPoint activePoint, bool alignPoints, Microsoft.VisualStudio.Text.Editor scrollOptions ) : void

Selects data and moves the caret

SelectCurrentWord ( ) : void

Selects the current word (cell)

SelectLine ( dnSpy.Contracts.Hex.Formatting.HexViewLine viewLine, bool extendSelection ) : void

Selects the line

ShowAllBytes ( ) : void

Shows all bytes (HexBuffer.Span)

ShowOnlySelectedBytes ( ) : void

Shows only the selected bytes

SwapCaretAndAnchor ( ) : void

Swap selection caret and anchor positions

ToggleColumn ( ) : void

Toggles active column

ZoomIn ( ) : void

Zoom in

ZoomOut ( ) : void

Zoom out

ZoomTo ( double zoomLevel ) : void

Zoom to zoomLevel

Méthodes protégées

Méthode Description
HexEditorOperations ( ) : dnSpy.Contracts.Hex.Editor

Constructor

Method Details

ClearData() public abstract méthode

Clears data
public abstract ClearData ( ) : bool
Résultat bool

CopySelectionBytes() public abstract méthode

Copy selection, bytes (as text)
public abstract CopySelectionBytes ( ) : bool
Résultat bool

CopySelectionText() public abstract méthode

Copy selection, UI text
public abstract CopySelectionText ( ) : bool
Résultat bool

CopySpecial() public abstract méthode

Copies text to the clipboard
public abstract CopySpecial ( HexCopySpecialKind copyKind ) : bool
copyKind HexCopySpecialKind What kind of data to copy
Résultat bool

ExtendSelection() public abstract méthode

Extend selection
public abstract ExtendSelection ( HexBufferPoint newEnd ) : void
newEnd HexBufferPoint New end position
Résultat void

HexEditorOperations() protected méthode

Constructor
protected HexEditorOperations ( ) : dnSpy.Contracts.Hex.Editor
Résultat dnSpy.Contracts.Hex.Editor

InsertText() public abstract méthode

Inserts text
public abstract InsertText ( string text ) : bool
text string Text
Résultat bool

MoveCaret() public méthode

Move caret to a line
public MoveCaret ( dnSpy.Contracts.Hex.Formatting.HexViewLine hexLine, double horizontalOffset, bool extendSelection ) : void
hexLine dnSpy.Contracts.Hex.Formatting.HexViewLine Line
horizontalOffset double Horizontal offset
extendSelection bool true to extend the selection
Résultat void

MoveCaret() public abstract méthode

Move caret to a line
public abstract MoveCaret ( dnSpy.Contracts.Hex.Formatting.HexViewLine hexLine, double horizontalOffset, bool extendSelection, HexMoveToFlags flags ) : void
hexLine dnSpy.Contracts.Hex.Formatting.HexViewLine Line
horizontalOffset double Horizontal offset
extendSelection bool true to extend the selection
flags HexMoveToFlags Flags
Résultat void

MoveCurrentLineToBottom() public abstract méthode

Move current line to bottom of the view
public abstract MoveCurrentLineToBottom ( ) : void
Résultat void

MoveCurrentLineToTop() public abstract méthode

Move current line to top of the view
public abstract MoveCurrentLineToTop ( ) : void
Résultat void

MoveLineDown() public abstract méthode

Move down a line
public abstract MoveLineDown ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveLineUp() public abstract méthode

Move up a line
public abstract MoveLineUp ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToBottomOfView() public abstract méthode

Move the caret to the bottom of the view
public abstract MoveToBottomOfView ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToEndOfDocument() public abstract méthode

Move to end of document
public abstract MoveToEndOfDocument ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToEndOfLine() public abstract méthode

Move to the end of the line
public abstract MoveToEndOfLine ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToNextCharacter() public abstract méthode

Moves the caret to the next character
public abstract MoveToNextCharacter ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToNextValidStartEnd() public abstract méthode

Move to the next closest start/end position of a block of memory
public abstract MoveToNextValidStartEnd ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToNextWord() public abstract méthode

Moves the caret to the next word (cell)
public abstract MoveToNextWord ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToPreviousCharacter() public abstract méthode

Moves the caret to the previous character
public abstract MoveToPreviousCharacter ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToPreviousValidStartEnd() public abstract méthode

Move to the previous closest start/end position of a block of memory
public abstract MoveToPreviousValidStartEnd ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToPreviousWord() public abstract méthode

Moves the caret to the previous word (cell)
public abstract MoveToPreviousWord ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToStartOfDocument() public abstract méthode

Move to start of document
public abstract MoveToStartOfDocument ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToStartOfLine() public abstract méthode

Move to the start of the line
public abstract MoveToStartOfLine ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

MoveToTopOfView() public abstract méthode

Move the caret to the top of the view
public abstract MoveToTopOfView ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

PageDown() public abstract méthode

Page down
public abstract PageDown ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

PageUp() public abstract méthode

Page up
public abstract PageUp ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Résultat void

Paste() public abstract méthode

Paste
public abstract Paste ( ) : bool
Résultat bool

PasteSpecial() public abstract méthode

Pastes data from the clipboard
public abstract PasteSpecial ( HexPasteSpecialKind pasteKind ) : bool
pasteKind HexPasteSpecialKind What kind of data to paste
Résultat bool

Refresh() public abstract méthode

Refreshes the screen and clears any read caches
public abstract Refresh ( ) : void
Résultat void

ResetSelection() public abstract méthode

Reset selection
public abstract ResetSelection ( ) : void
Résultat void

ScrollColumnLeft() public abstract méthode

Scoll one column left
public abstract ScrollColumnLeft ( ) : void
Résultat void

ScrollColumnRight() public abstract méthode

Scoll one column right
public abstract ScrollColumnRight ( ) : void
Résultat void

ScrollDownAndMoveCaretIfNecessary() public abstract méthode

Scroll down and move caret so it's within the viewport
public abstract ScrollDownAndMoveCaretIfNecessary ( ) : void
Résultat void

ScrollLineBottom() public abstract méthode

Move current line to the bottom of the view, don't move the caret
public abstract ScrollLineBottom ( ) : void
Résultat void

ScrollLineCenter() public abstract méthode

Move current line to the center of the view, don't move the caret
public abstract ScrollLineCenter ( ) : void
Résultat void

ScrollLineTop() public abstract méthode

Move current line to the top of the view, don't move the caret
public abstract ScrollLineTop ( ) : void
Résultat void

ScrollPageDown() public abstract méthode

Page down, but don't move caret
public abstract ScrollPageDown ( ) : void
Résultat void

ScrollPageUp() public abstract méthode

Page up, but don't move caret
public abstract ScrollPageUp ( ) : void
Résultat void

ScrollUpAndMoveCaretIfNecessary() public abstract méthode

Scroll up and move caret so it's within the viewport
public abstract ScrollUpAndMoveCaretIfNecessary ( ) : void
Résultat void

SelectAll() public abstract méthode

Select all
public abstract SelectAll ( ) : void
Résultat void

SelectAllBytesBlock() public abstract méthode

Selects all bytes in the current block, unless the caret is in a memory hole
public abstract SelectAllBytesBlock ( ) : void
Résultat void

SelectAndMoveCaret() public méthode

Selects data and moves the caret
public SelectAndMoveCaret ( HexColumnType column, HexBufferPoint anchorPoint, HexBufferPoint activePoint, bool alignPoints ) : void
column HexColumnType Column
anchorPoint HexBufferPoint Anchor position
activePoint HexBufferPoint Active position
alignPoints bool true to align the span to include all bytes of the cells
Résultat void

SelectAndMoveCaret() public abstract méthode

Selects data and moves the caret
public abstract SelectAndMoveCaret ( HexColumnType column, HexBufferPoint anchorPoint, HexBufferPoint activePoint, bool alignPoints, Microsoft.VisualStudio.Text.Editor scrollOptions ) : void
column HexColumnType Column
anchorPoint HexBufferPoint Anchor position
activePoint HexBufferPoint Active position
alignPoints bool true to align the span to include all bytes of the cells
scrollOptions Microsoft.VisualStudio.Text.Editor Scroll options
Résultat void

SelectCurrentWord() public abstract méthode

Selects the current word (cell)
public abstract SelectCurrentWord ( ) : void
Résultat void

SelectLine() public abstract méthode

Selects the line
public abstract SelectLine ( dnSpy.Contracts.Hex.Formatting.HexViewLine viewLine, bool extendSelection ) : void
viewLine dnSpy.Contracts.Hex.Formatting.HexViewLine Line
extendSelection bool true to extend the selection
Résultat void

ShowAllBytes() public abstract méthode

Shows all bytes (HexBuffer.Span)
public abstract ShowAllBytes ( ) : void
Résultat void

ShowOnlySelectedBytes() public abstract méthode

Shows only the selected bytes
public abstract ShowOnlySelectedBytes ( ) : void
Résultat void

SwapCaretAndAnchor() public abstract méthode

Swap selection caret and anchor positions
public abstract SwapCaretAndAnchor ( ) : void
Résultat void

ToggleColumn() public abstract méthode

Toggles active column
public abstract ToggleColumn ( ) : void
Résultat void

ZoomIn() public abstract méthode

Zoom in
public abstract ZoomIn ( ) : void
Résultat void

ZoomOut() public abstract méthode

Zoom out
public abstract ZoomOut ( ) : void
Résultat void

ZoomTo() public abstract méthode

Zoom to zoomLevel
public abstract ZoomTo ( double zoomLevel ) : void
zoomLevel double Zoom level, between 20% and 400% (20.0 and 400.0)
Résultat void