SIL.FieldWorks.Common.Framework.DetailControls.StringSlice.StringSliceVc.SetParaRtlIfNeeded C# (CSharp) Méthode

SetParaRtlIfNeeded() private méthode

private SetParaRtlIfNeeded ( IVwEnv vwenv, int ws ) : void
vwenv IVwEnv
ws int
Résultat void
			private void SetParaRtlIfNeeded(IVwEnv vwenv, int ws)
			{
				if (m_cache == null)
					return;
				IWritingSystem wsObj = m_cache.ServiceLocator.WritingSystemManager.Get(ws);
				if (wsObj != null && wsObj.RightToLeftScript)
				{
					vwenv.set_IntProperty((int)FwTextPropType.ktptRightToLeft,
						(int)FwTextPropVar.ktpvEnum,
						(int)FwTextToggleVal.kttvForceOn);
					vwenv.set_IntProperty((int)FwTextPropType.ktptAlign,
						(int)FwTextPropVar.ktpvEnum,
						(int)FwTextAlign.ktalTrailing);
					m_fRtlScript = true;
				}
				else
				{
					m_fRtlScript = false;
				}
			}