SIL.FieldWorks.SharpViews.Hookups.StringHookup.Delete C# (CSharp) Method

Delete() private method

private Delete ( InsertionPoint start, InsertionPoint end ) : void
start SIL.FieldWorks.SharpViews.Selections.InsertionPoint
end SIL.FieldWorks.SharpViews.Selections.InsertionPoint
return void
		internal override void Delete(InsertionPoint start, InsertionPoint end)
		{
			if (CanDelete(start, end))
			{
				string oldValue = ((StringClientRun)ParaBox.Source.ClientRuns[ClientRunIndex]).Contents;
				int newPos = start.StringPosition;
				string newValue = oldValue.Remove(newPos, end.StringPosition - newPos);
				Writer(newValue);
			}
		}