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 sealed class TaskToggledEventArgs(bool isChecked, int sourceStart, int sourceLength, int line) : RoutedEventArgs
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.
kind:method, kind:property, kind:ctor. Press Esc to clear.TaskToggledEventArgs(Boolean, Int32, Int32, Int32)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.IsCheckedThe item's new state: true when it is now checked.LineThe zero-based line of the markdown source the marker is on.SourceLengthThe length of the marker in the markdown source (3 for [ ], [x] or [X]).SourceStartThe zero-based index of the marker's opening [ in the markdown source.