//Searches from right to left for a comment in the record starting at (but not including) position rightPos and ending at (and including) leftPos. //The channel parameter is ignored if the flags parameter has kSearchAnyChannel set. //[helpstring("method GetRightMostCommentInRange: searches back from rightPos for the first comment to the left of rightPos.")] // HRESULT GetRightMostCommentInRange([in]EnumCommentFlags searchFlags, [in]ADIPosition leftPos, [in]ADIPosition rightPos, [in]TChanIndex chan, [out]IADIComment **icmt) const; public IADIComment RightMostCommentInRange(EnumCommentFlags searchFlags, ADIPosition leftPos, ADIPosition rightPos, int chan) { IADIComment comment; mADIData.GetRightMostCommentInRange(searchFlags, leftPos, rightPos, chan, out comment); return(comment); }
//Creates a object to enumerate comments in the record from right to left starting at position start and ending at (and including) stop. //If the parameter start is set to ADIPosition.kRecordEndOffset, the enumerator will return comments starting from the end of the record. //The channel parameter is ignored if the flags parameter has kSearchAnyChannel set. public CommentIter CommentIteratorReverse(EnumCommentFlags searchFlags, int chan, ADIPosition startPos, int stopTick) { IEnumADIComment enumComments; mADIData.CreateEnumCommentReverse(searchFlags, chan, startPos, stopTick, 0, out enumComments); return(new CommentIter(enumComments, stopTick)); }