コード例 #1
0
        public NodeViewModel(IAnnotationField field, bool editable = true)
        {
            _field          = field;
            _preName        = _field.Name;
            _isNodeEditable = editable;

            IDocumentService doc = ServiceLocator.Current.GetInstance <IDocumentService>();

            _document = doc.Document;
        }
コード例 #2
0
ファイル: PageNoteModel.cs プロジェクト: naver/protonow
        public NodeViewModel AddNote()
        {
            IAnnotationField field = PageNoteFieldSet.CreateAnnotationField(GetNoteName(), AnnotationFieldType.Text);

            NodeViewModel node = new NodeViewModel(field);

            NoteList.Add(node);

            return(node);
        }