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
コード例 #1
0
ファイル: ParaItem.cs プロジェクト: sillsdev/FieldWorks
		/// <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);

		}
コード例 #2
0
ファイル: InsertionPoint.cs プロジェクト: bbriggs/FieldWorks
		internal InsertionPoint(LiteralStringParaHookup hookup, int position, bool fAssocPrev)
		{
			Hookup = hookup;
			StringPosition = position;
			AssociatePrevious = fAssocPrev;
		}