This is a cut-down version of StringHookup used in selection of client runs that don't have natural hookups, such as literal strings. It never sends change notifcations, so doesn't need delegates for updates and notifications. If you find a LiteralStringParaHookup where you expected one that allows editing, like StringHookup or TssHookup, one possible cause is that you don't have a correctly named "XChanged" event being triggered when your property X changes.
Inheritance: Hookup
Ejemplo n.º 1
0
		/// <summary>
		/// Return an insertion point at specified position in THIS RUN within the paragraph.
		/// </summary>
		public InsertionPoint SelectAt(ParaBox para, int ichRun, bool associatePrevious)
		{
			LiteralStringParaHookup hookup = Hookup;
			if (hookup == null)
			{
				hookup = new LiteralStringParaHookup(null, para);
				hookup.ClientRunIndex = para.Source.ClientRuns.IndexOf(this);
			}
			return new InsertionPoint(hookup, ichRun, associatePrevious);

		}
Ejemplo n.º 2
0
		internal InsertionPoint(LiteralStringParaHookup hookup, int position, bool fAssocPrev)
		{
			Hookup = hookup;
			StringPosition = position;
			AssociatePrevious = fAssocPrev;
		}