ApplyWS() public method

Applies the specified writing system to the current selection
public ApplyWS ( int hvoWs ) : void
hvoWs int The ID of the writing system to apply
return void
Esempio n. 1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Applies the specified writing system to the current selection of the Tss string in
		/// the specified Tss edit control
		/// </summary>
		/// <param name="fwTextBox">The Tss edit control whose selection should have the
		/// specified style applied to it.</param>
		/// <param name="hvoWs">The ID of the writing system to apply</param>
		/// ------------------------------------------------------------------------------------
		public void ApplyWS(FwTextBox fwTextBox, int hvoWs)
		{
			CheckDisposed();

			fwTextBox.ApplyWS(hvoWs);
			if (chkMatchWS.Enabled)
				chkMatchWS.Checked = true;
			fwTextBox.Focus();
		}
Esempio n. 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Applies the specified writing system to the current selection of the Tss string in
		/// the specified Tss edit control
		/// </summary>
		/// <param name="fwTextBox">The Tss edit control whose selection should have the
		/// specified style applied to it.</param>
		/// <param name="hvoWs">The ID of the writing system to apply</param>
		/// ------------------------------------------------------------------------------------
		public void ApplyWS(FwTextBox fwTextBox, int hvoWs)
		{
			CheckDisposed();

			fwTextBox.ApplyWS(hvoWs);
			if (chkMatchWS.Enabled)
				chkMatchWS.Checked = true;
			SetFormatLabels();
			fwTextBox.Select();
		}