private void TestMark() { short w1, w2, w3; m_head.GetMarkerCount(out w1); m_head.AddMarker("mark1", 12340000); m_head.GetMarkerCount(out w2); Debug.Assert(w2 == w1 + 1); long l; short pLen = 0; m_head.GetMarker((short)(w2 - 1), null, ref pLen, out l); StringBuilder sb = new StringBuilder(pLen); m_head.GetMarker((short)(w2 - 1), sb, ref pLen, out l); Debug.Assert(sb.ToString() == "mark1" && l == 12340000); m_head.RemoveMarker((short)(w2 - 1)); m_head.GetMarkerCount(out w3); Debug.Assert(w3 == w1); }
/// <summary> /// Remove a marker. Wraps IWMHeaderInfo.RemoveMarker /// </summary> /// <param name="index">Index of the marker to remove</param> public void RemoveMarker(int index) { m_HeaderInfo.RemoveMarker((ushort)index); }