TaskToggledEventArgs(Boolean, Int32, Int32, Int32) Constructor

Definition

Assembly MarkView.Avalonia.dll

Event args for a task-list checkbox toggled by the user. Carries the new state and where the item's [ ] / [x] marker sits in the markdown source, so the host can write the change back.

public TaskToggledEventArgs(bool isChecked, int sourceStart, int sourceLength, int line)

Parameters

isChecked
Boolean
sourceStart
Int32
sourceLength
Int32
line
Int32

Remarks

Raised through TaskToggled, positions refer to the markdown text the viewer rendered: the Markdown string as set, or the document loaded from Source. Raised through TaskToggled, they refer to the text the rendered document was parsed from.