示例#1
0
        internal MixedCodeDocumentFragment(MixedCodeDocument doc, MixedCodeDocumentFragmentType type)
        {
            _doc  = doc;
            _type = type;
            switch (type)
            {
            case MixedCodeDocumentFragmentType.Text:
                _doc._textfragments.Append(this);
                break;

            case MixedCodeDocumentFragmentType.Code:
                _doc._codefragments.Append(this);
                break;
            }
            _doc._fragments.Append(this);
        }
        internal MixedCodeDocumentFragment(MixedCodeDocument doc, MixedCodeDocumentFragmentType type)
        {
            _doc = doc;
            _type = type;
            switch (type)
            {
                case MixedCodeDocumentFragmentType.Text:
                    _doc._textfragments.Append(this);
                    break;

                case MixedCodeDocumentFragmentType.Code:
                    _doc._codefragments.Append(this);
                    break;
            }
            _doc._fragments.Append(this);
        }
 internal MixedCodeDocumentFragmentList(MixedCodeDocument doc)
 {
     //_doc = doc;
 }
 internal MixedCodeDocumentTextFragment(MixedCodeDocument doc)
     :
     base(doc, MixedCodeDocumentFragmentType.Text)
 {
 }
示例#5
0
 internal MixedCodeDocumentFragmentList(MixedCodeDocument doc)
 {
     _doc = doc;
 }
 internal MixedCodeDocumentTextFragment(MixedCodeDocument doc)
     :
     base(doc, MixedCodeDocumentFragmentType.Text)
 {
 }
 internal MixedCodeDocumentCodeFragment(MixedCodeDocument doc)
     :
     base(doc, MixedCodeDocumentFragmentType.Code)
 {
 }
示例#8
0
 internal MixedCodeDocumentCodeFragment(MixedCodeDocument doc) :
     base(doc, MixedCodeDocumentFragmentType.Code)
 {
 }