Пример #1
0
 public bool PositionOfRange(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ichMin, int ichLim, int ydTop, int ydBottom, bool fIsLastLineOfSelection, out Rect rsBounds)
 {
     LastDrawRangeCall = new DrawRangeArgs
     {
         IchBase  = ichBase,
         Graphics = _vg,
         RcSrc    = rcSrc,
         RcDst    = rcDst,
         IchMin   = ichMin,
         IchLim   = ichLim,
         YdTop    = ydTop,
         YdBottom = ydBottom,
         IsLastLineOfSelection = fIsLastLineOfSelection
     };
     if (NextPositionOfRange == null)
     {
         rsBounds = new Rect(-1, -1, -1, -1);
         return(false);
     }
     else
     {
         rsBounds = NextPositionOfRange.RsBounds;
         return(NextPositionOfRange.DisplayedInSegment);
     }
 }
Пример #2
0
 public Rect DrawRange(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ichMin, int ichLim, int ydTop, int ydBottom, bool bOn, bool fIsLastLineOfSelection)
 {
     LastDrawRangeCall = new DrawRangeArgs
     {
         IchBase  = ichBase,
         Graphics = _vg,
         RcSrc    = rcSrc,
         RcDst    = rcDst,
         IchMin   = ichMin,
         IchLim   = ichLim,
         YdTop    = ydTop,
         YdBottom = ydBottom,
         On       = bOn,
         IsLastLineOfSelection = fIsLastLineOfSelection
     };
     return(new Rect(DrawRangeLeft, ydTop, DrawRangeRight, ydBottom));
 }
Пример #3
0
		public bool PositionOfRange(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ichMin, int ichLim, int ydTop, int ydBottom, bool fIsLastLineOfSelection, out Rect rsBounds)
		{
			LastDrawRangeCall = new DrawRangeArgs
			{
				IchBase = ichBase,
				Graphics = _vg,
				RcSrc = rcSrc,
				RcDst = rcDst,
				IchMin = ichMin,
				IchLim = ichLim,
				YdTop = ydTop,
				YdBottom = ydBottom,
				IsLastLineOfSelection = fIsLastLineOfSelection
			};
			if (NextPositionOfRange == null)
			{
				rsBounds = new Rect(-1, -1, -1, -1);
				return false;
			}
			else
			{
				rsBounds = NextPositionOfRange.RsBounds;
				return NextPositionOfRange.DisplayedInSegment;
			}
		}
Пример #4
0
		public Rect DrawRange(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ichMin, int ichLim, int ydTop, int ydBottom, bool bOn, bool fIsLastLineOfSelection)
		{
			LastDrawRangeCall = new DrawRangeArgs
									{
										IchBase = ichBase,
										Graphics = _vg,
										RcSrc = rcSrc,
										RcDst = rcDst,
										IchMin = ichMin,
										IchLim = ichLim,
										YdTop = ydTop,
										YdBottom = ydBottom,
										On = bOn,
										IsLastLineOfSelection = fIsLastLineOfSelection
									};
			return new Rect(DrawRangeLeft, ydTop, DrawRangeRight, ydBottom);
		}