SIL.FieldWorks.Common.Widgets.FwComboBox.AddItem C# (CSharp) Method

AddItem() public method

Add items to the FWComboBox but adjust the string so it matches the Font size.
public AddItem ( ITsString tss ) : void
tss ITsString
return void
		public void AddItem(ITsString tss)
		{
			CheckDisposed();

			//first calculate things to we adjust the font to the correct size.
			int mpEditHeight = FwTextBox.GetDympMaxHeight(m_comboTextBox);
			ITsString tssAdjusted;
			tssAdjusted = FontHeightAdjuster.GetAdjustedTsString(tss, mpEditHeight, StyleSheet,
						WritingSystemFactory);
			Items.Add(tssAdjusted);
		}