public RtfToken(RtfTokenType type, int startIndex, int length, string rtf)
     : this()
 {
     this.Type       = type;
     this.StartIndex = startIndex;
     this.Length     = length;
     this.Rtf        = rtf;
 }
Пример #2
0
            /// <summary>
            /// Constructor de la clase RtfToken. Crea un token vacío.
            /// </summary>
            public RtfToken()
            {
                type = RtfTokenType.None;
                key  = "";

                /* Inicializados por defecto */
                //hasParam = false;
                //param = 0;
            }
        private RtfToken Match(RtfTokenType type, string value)
        {
            RtfToken token = (RtfToken)Read();

            if (token.Type != type || token.Value != value)
            {
                throw new ParseException("Unexpected token");
            }

            return(token);
        }
Пример #4
0
        private RtfToken Match(RtfTokenType type, string value)
        {
            RtfToken token = (RtfToken)Read();
            if (token.Type != type || token.Value != value) {
                throw new ParseException("Unexpected token");
            }

            return token;
        }
Пример #5
0
            /// <summary>
            /// Constructor de la clase RtfToken. Crea un token vacío.
            /// </summary>
            public RtfToken()
            {
                type = RtfTokenType.None;
                key = "";
                
				/* Inicializados por defecto */
				//hasParam = false;
				//param = 0;
            }
Пример #6
0
 public void method_6(RtfTokenType A_0)
 {
     this.rtfTokenType_0 = A_0;
 }