C# Класс dnSpy.Contracts.Hex.Operations.HexEditorOperations

Hex editor operations
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
HexEditorOperations ( ) : dnSpy.Contracts.Hex.Editor

Constructor

Описание методов

ClearData() публичный абстрактный Метод

Clears data
public abstract ClearData ( ) : bool
Результат bool

CopySelectionBytes() публичный абстрактный Метод

Copy selection, bytes (as text)
public abstract CopySelectionBytes ( ) : bool
Результат bool

CopySelectionText() публичный абстрактный Метод

Copy selection, UI text
public abstract CopySelectionText ( ) : bool
Результат bool

CopySpecial() публичный абстрактный Метод

Copies text to the clipboard
public abstract CopySpecial ( HexCopySpecialKind copyKind ) : bool
copyKind HexCopySpecialKind What kind of data to copy
Результат bool

ExtendSelection() публичный абстрактный Метод

Extend selection
public abstract ExtendSelection ( HexBufferPoint newEnd ) : void
newEnd HexBufferPoint New end position
Результат void

HexEditorOperations() защищенный Метод

Constructor
protected HexEditorOperations ( ) : dnSpy.Contracts.Hex.Editor
Результат dnSpy.Contracts.Hex.Editor

InsertText() публичный абстрактный Метод

Inserts text
public abstract InsertText ( string text ) : bool
text string Text
Результат bool

MoveCaret() публичный Метод

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
Результат void

MoveCaret() публичный абстрактный Метод

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
Результат void

MoveCurrentLineToBottom() публичный абстрактный Метод

Move current line to bottom of the view
public abstract MoveCurrentLineToBottom ( ) : void
Результат void

MoveCurrentLineToTop() публичный абстрактный Метод

Move current line to top of the view
public abstract MoveCurrentLineToTop ( ) : void
Результат void

MoveLineDown() публичный абстрактный Метод

Move down a line
public abstract MoveLineDown ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveLineUp() публичный абстрактный Метод

Move up a line
public abstract MoveLineUp ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToBottomOfView() публичный абстрактный Метод

Move the caret to the bottom of the view
public abstract MoveToBottomOfView ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToEndOfDocument() публичный абстрактный Метод

Move to end of document
public abstract MoveToEndOfDocument ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToEndOfLine() публичный абстрактный Метод

Move to the end of the line
public abstract MoveToEndOfLine ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToNextCharacter() публичный абстрактный Метод

Moves the caret to the next character
public abstract MoveToNextCharacter ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToNextValidStartEnd() публичный абстрактный Метод

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
Результат void

MoveToNextWord() публичный абстрактный Метод

Moves the caret to the next word (cell)
public abstract MoveToNextWord ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToPreviousCharacter() публичный абстрактный Метод

Moves the caret to the previous character
public abstract MoveToPreviousCharacter ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToPreviousValidStartEnd() публичный абстрактный Метод

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
Результат void

MoveToPreviousWord() публичный абстрактный Метод

Moves the caret to the previous word (cell)
public abstract MoveToPreviousWord ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToStartOfDocument() публичный абстрактный Метод

Move to start of document
public abstract MoveToStartOfDocument ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToStartOfLine() публичный абстрактный Метод

Move to the start of the line
public abstract MoveToStartOfLine ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

MoveToTopOfView() публичный абстрактный Метод

Move the caret to the top of the view
public abstract MoveToTopOfView ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

PageDown() публичный абстрактный Метод

Page down
public abstract PageDown ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

PageUp() публичный абстрактный Метод

Page up
public abstract PageUp ( bool extendSelection ) : void
extendSelection bool true to extend the selection
Результат void

Paste() публичный абстрактный Метод

Paste
public abstract Paste ( ) : bool
Результат bool

PasteSpecial() публичный абстрактный Метод

Pastes data from the clipboard
public abstract PasteSpecial ( HexPasteSpecialKind pasteKind ) : bool
pasteKind HexPasteSpecialKind What kind of data to paste
Результат bool

Refresh() публичный абстрактный Метод

Refreshes the screen and clears any read caches
public abstract Refresh ( ) : void
Результат void

ResetSelection() публичный абстрактный Метод

Reset selection
public abstract ResetSelection ( ) : void
Результат void

ScrollColumnLeft() публичный абстрактный Метод

Scoll one column left
public abstract ScrollColumnLeft ( ) : void
Результат void

ScrollColumnRight() публичный абстрактный Метод

Scoll one column right
public abstract ScrollColumnRight ( ) : void
Результат void

ScrollDownAndMoveCaretIfNecessary() публичный абстрактный Метод

Scroll down and move caret so it's within the viewport
public abstract ScrollDownAndMoveCaretIfNecessary ( ) : void
Результат void

ScrollLineBottom() публичный абстрактный Метод

Move current line to the bottom of the view, don't move the caret
public abstract ScrollLineBottom ( ) : void
Результат void

ScrollLineCenter() публичный абстрактный Метод

Move current line to the center of the view, don't move the caret
public abstract ScrollLineCenter ( ) : void
Результат void

ScrollLineTop() публичный абстрактный Метод

Move current line to the top of the view, don't move the caret
public abstract ScrollLineTop ( ) : void
Результат void

ScrollPageDown() публичный абстрактный Метод

Page down, but don't move caret
public abstract ScrollPageDown ( ) : void
Результат void

ScrollPageUp() публичный абстрактный Метод

Page up, but don't move caret
public abstract ScrollPageUp ( ) : void
Результат void

ScrollUpAndMoveCaretIfNecessary() публичный абстрактный Метод

Scroll up and move caret so it's within the viewport
public abstract ScrollUpAndMoveCaretIfNecessary ( ) : void
Результат void

SelectAll() публичный абстрактный Метод

Select all
public abstract SelectAll ( ) : void
Результат void

SelectAllBytesBlock() публичный абстрактный Метод

Selects all bytes in the current block, unless the caret is in a memory hole
public abstract SelectAllBytesBlock ( ) : void
Результат void

SelectAndMoveCaret() публичный Метод

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
Результат void

SelectAndMoveCaret() публичный абстрактный Метод

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
Результат void

SelectCurrentWord() публичный абстрактный Метод

Selects the current word (cell)
public abstract SelectCurrentWord ( ) : void
Результат void

SelectLine() публичный абстрактный Метод

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
Результат void

ShowAllBytes() публичный абстрактный Метод

Shows all bytes (HexBuffer.Span)
public abstract ShowAllBytes ( ) : void
Результат void

ShowOnlySelectedBytes() публичный абстрактный Метод

Shows only the selected bytes
public abstract ShowOnlySelectedBytes ( ) : void
Результат void

SwapCaretAndAnchor() публичный абстрактный Метод

Swap selection caret and anchor positions
public abstract SwapCaretAndAnchor ( ) : void
Результат void

ToggleColumn() публичный абстрактный Метод

Toggles active column
public abstract ToggleColumn ( ) : void
Результат void

ZoomIn() публичный абстрактный Метод

Zoom in
public abstract ZoomIn ( ) : void
Результат void

ZoomOut() публичный абстрактный Метод

Zoom out
public abstract ZoomOut ( ) : void
Результат void

ZoomTo() публичный абстрактный Метод

Zoom to zoomLevel
public abstract ZoomTo ( double zoomLevel ) : void
zoomLevel double Zoom level, between 20% and 400% (20.0 and 400.0)
Результат void