コード例 #1
0
        public override bool IsTextChange(DocumentNodeChange change)
        {
            if (base.IsTextChange(change))
            {
                return(true);
            }
            DocumentCompositeNode documentCompositeNode1 = (DocumentCompositeNode)this.TextSource.DocumentNode;
            IPropertyId           textChildProperty      = ((ITextFlowSceneNode)this.TextSource).TextChildProperty;

            if (textChildProperty != null)
            {
                if (textChildProperty.Equals((object)change.PropertyKey))
                {
                    return(true);
                }
                DocumentCompositeNode documentCompositeNode2 = documentCompositeNode1.Properties[textChildProperty] as DocumentCompositeNode;
                if (documentCompositeNode2 != null && documentCompositeNode2.IsAncestorOf((Microsoft.Expression.DesignModel.DocumentModel.DocumentNode)change.ParentNode))
                {
                    return(true);
                }
            }
            return(false);
        }