Exemple #1
0
        /// <summary>
        /// Creates a new TextModel
        /// </summary>
        /// <param name="imgUri"></param>
        /// <returns></returns>
        internal TextModel newTextModel()
        {
            TextModel textModel = new TextModel();

            textModel.WorkspaceModel = this;
            AllTextModels.Add(textModel);
            return(textModel);
        }
Exemple #2
0
 /// <summary>
 /// Deletes the given TextModel
 /// </summary>
 /// <param name="imgUri"></param>
 /// <returns></returns>
 internal bool deleteTextModel(TextModel textModel)
 {
     OnDeletedChildElement(textModel);
     return(AllTextModels.Remove(textModel));
 }
Exemple #3
0
 /// <summary>
 /// Add a TextModel to this WorkspaceModel
 /// </summary>
 /// <param name="imgUri"></param>
 /// <returns></returns>
 internal void addTextModel(TextModel textModel)
 {
     AllTextModels.Add(textModel);
 }