Class EditorState
Manages the state of the clinical document editor including current document, selection, cursor position, and view mode.
public class EditorState
- Inheritance
-
EditorState
- Inherited Members
Constructors
EditorState(ClinicalDocument)
public EditorState(ClinicalDocument document)
Parameters
documentClinicalDocument
Properties
Document
public ClinicalDocument Document { get; }
Property Value
FlattenedEntries
public IReadOnlyList<AbstractClinicalEntry> FlattenedEntries { get; }
Property Value
HasEntries
public bool HasEntries { get; }
Property Value
IsDirty
public bool IsDirty { get; set; }
Property Value
SelectedEntry
public AbstractClinicalEntry? SelectedEntry { get; }
Property Value
SelectedIndex
public int SelectedIndex { get; set; }
Property Value
ViewMode
public EditorState.EditorViewMode ViewMode { get; set; }
Property Value
Methods
GetEntryIndex(AbstractClinicalEntry)
public int GetEntryIndex(AbstractClinicalEntry entry)
Parameters
entryAbstractClinicalEntry
Returns
GetGroupedEntries()
public GroupedEntries GetGroupedEntries()
Returns
MarkClean()
public void MarkClean()
MarkDirty()
public void MarkDirty()
MoveSelectionDown()
public void MoveSelectionDown()
MoveSelectionUp()
public void MoveSelectionUp()
MoveToFirst()
public void MoveToFirst()
MoveToLast()
public void MoveToLast()
RefreshFlattenedEntries()
public void RefreshFlattenedEntries()