CollectorEnv is a base class for objects that implement the IVwEnv interface. The main implementation (in C++) is normally used to actually produce a Views-based display. This class and its subclasses are used by the same code, but for purposes like producing an equivalent string, or testing whether some display will be blank. Note that collectorEnv does not currently fully support multiple-root-object situations (you would have to call the outer Display() method for each root box, and it would not track ihvoRoot...I'm not quite sure where that might be needed.)
Inheritance: IVwEnv
コード例 #1
0
ファイル: CollectorEnv.cs プロジェクト: sillsdev/FieldWorks
		/// <summary>
		/// Makes the selection in object.
		/// </summary>
		/// <param name="rootb">The rootb.</param>
		/// <param name="li">The li.</param>
		/// <param name="fInstall">if set to <see langword="true"/> [install].</param>
		/// <returns></returns>
		public static IVwSelection MakeSelectionInObject(IVwRootBox rootb, CollectorEnv.LocationInfo li, bool fInstall)
		{
			if (rootb == null || li == null)
				return null;
			return rootb.MakeSelInObj(0, li.m_location.Length, li.m_location, li.m_tag, fInstall);
		}
コード例 #2
0
ファイル: CollectorEnv.cs プロジェクト: sillsdev/FieldWorks
		/// <summary>
		/// Makes a text selection out of the given locationInfo.
		/// </summary>
		/// <param name="rootb">The rootb.</param>
		/// <param name="li">The selection path info</param>
		/// <param name="fInstall">if true, install the selection</param>
		/// <returns></returns>
		public static IVwSelection MakeTextSelection(IVwRootBox rootb, CollectorEnv.LocationInfo li, bool fInstall)
		{
			if (rootb == null || li == null)
				return null;
			return rootb.MakeTextSelection(0, li.m_location.Length, li.m_location, li.m_tag,
					li.m_cpropPrev, li.m_ichMin, li.m_ichMin, li.m_ws, false, -1, null, fInstall);
		}