• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# PointTrackingMode类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中PointTrackingMode的典型用法代码示例。如果您正苦于以下问题:C# PointTrackingMode类的具体用法?C# PointTrackingMode怎么用?C# PointTrackingMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PointTrackingMode类属于命名空间,在下文中一共展示了PointTrackingMode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: TrackingPointMock

 public TrackingPointMock(ITextBuffer textBuffer, int position, PointTrackingMode trackingMode, TrackingFidelityMode trackingFidelity)
 {
     _position = position;
     
     TextBuffer = textBuffer;
     TrackingFidelity = trackingFidelity;
     TrackingMode = trackingMode;
 }
开发者ID:AlexanderSher,项目名称:RTVS-Old,代码行数:8,代码来源:TrackingPointMock.cs


示例2: MappingPoint

		public MappingPoint(IBufferGraph bufferGraph, SnapshotPoint snapshotPoint, PointTrackingMode trackingMode) {
			if (bufferGraph == null)
				throw new ArgumentNullException(nameof(bufferGraph));
			if (snapshotPoint.Snapshot == null)
				throw new ArgumentException();
			BufferGraph = bufferGraph;
			this.snapshotPoint = snapshotPoint;
			this.trackingMode = trackingMode;
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:9,代码来源:MappingPoint.cs


示例3: TrackingPoint

		public TrackingPoint(ITextVersion textVersion, int position, PointTrackingMode trackingMode, TrackingFidelityMode trackingFidelity) {
			if (textVersion == null)
				throw new ArgumentNullException(nameof(textVersion));
			if ((uint)position > (uint)textVersion.Length)
				throw new ArgumentOutOfRangeException(nameof(position));
			TextBuffer = textVersion.TextBuffer;
			TrackingMode = trackingMode;
			TrackingFidelity = trackingFidelity;
			this.textVersion = textVersion;
			this.position = position;
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:11,代码来源:TrackingPoint.cs


示例4: MapDownToSnapshot

		public SnapshotPoint? MapDownToSnapshot(SnapshotPoint position, PointTrackingMode trackingMode, ITextSnapshot targetSnapshot, PositionAffinity affinity) {
			if (position.Snapshot == null)
				throw new ArgumentException();
			if (targetSnapshot == null)
				throw new ArgumentNullException(nameof(targetSnapshot));

			var res = MapDownToBuffer(position, trackingMode, targetSnapshot.TextBuffer, affinity);
			if (res == null)
				return null;
			return res.Value.TranslateTo(targetSnapshot, trackingMode);
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:11,代码来源:BufferGraph.cs


示例5: MapDownToBuffer

		public SnapshotPoint? MapDownToBuffer(SnapshotPoint position, PointTrackingMode trackingMode, ITextBuffer targetBuffer, PositionAffinity affinity) {
			if (position.Snapshot == null)
				throw new ArgumentException();
			if (targetBuffer == null)
				throw new ArgumentNullException(nameof(targetBuffer));

			if (position.Snapshot.TextBuffer != TopBuffer)
				return null;
			if (TopBuffer != targetBuffer)
				return null;
			return position.TranslateTo(targetBuffer.CurrentSnapshot, trackingMode);
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:12,代码来源:BufferGraph.cs


示例6: MapDownToInsertionPoint

 public SnapshotPoint? MapDownToInsertionPoint(SnapshotPoint position, PointTrackingMode trackingMode, Predicate<ITextSnapshot> match) {
     var snapshot = position.Snapshot;
     var buffer = snapshot.TextBuffer;
     int pos = position.TranslateTo(snapshot, trackingMode);
     while (!match(snapshot)) {
         var projBuffer = buffer as IProjectionBufferBase;
         if (projBuffer == null) {
             return null;
         }
         var projSnapshot = projBuffer.CurrentSnapshot;
         if (projSnapshot.SourceSnapshots.Count == 0) {
             return null;
         }
         var pt = projSnapshot.MapToSourceSnapshot(pos);
         pos = pt.Position;
         snapshot = pt.Snapshot;
         buffer = snapshot.TextBuffer;
     }
     return new SnapshotPoint(snapshot, pos);
 }
开发者ID:omnimark,项目名称:PTVS,代码行数:20,代码来源:MockBufferGraph.cs


示例7: CreateTrackingPoint

 public ITrackingPoint CreateTrackingPoint(int position, PointTrackingMode trackingMode, TrackingFidelityMode trackingFidelity)
 {
     throw new NotImplementedException();
 }
开发者ID:AngelPortal,项目名称:NBehave,代码行数:4,代码来源:MockTextSnapshot.cs


示例8: WithEndTrackingMode

 public ReplSpan WithEndTrackingMode(PointTrackingMode endTrackingMode)
 {
     return new ReplSpan(((CustomTrackingSpan)this.Span).WithEndTrackingMode(endTrackingMode), this.Kind);
 }
开发者ID:elemk0vv,项目名称:roslyn-1,代码行数:4,代码来源:ReplInput.cs


示例9: MapUpToBuffer

 public SnapshotPoint? MapUpToBuffer(SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextBuffer targetBuffer) {
     return point;
 }
开发者ID:Microsoft,项目名称:RTVS,代码行数:3,代码来源:BufferGraphMock.cs


示例10: CreateTrackingPoint

		public ITrackingPoint CreateTrackingPoint(int position, PointTrackingMode trackingMode, TrackingFidelityMode trackingFidelity) =>
			Version.CreateTrackingPoint(position, trackingMode, trackingFidelity);
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:2,代码来源:TextSnapshot.cs


示例11: MapDownToBuffer

 public SnapshotPoint? MapDownToBuffer(SnapshotPoint position, PointTrackingMode trackingMode, ITextBuffer targetBuffer, PositionAffinity affinity) {
     throw new NotImplementedException();
 }
开发者ID:omnimark,项目名称:PTVS,代码行数:3,代码来源:MockBufferGraph.cs


示例12: MapDownToInsertionPoint

 public SnapshotPoint? MapDownToInsertionPoint(SnapshotPoint position, PointTrackingMode trackingMode, Predicate<ITextSnapshot> match) {
     throw new NotImplementedException();
 }
开发者ID:sramos30,项目名称:ntvsiot,代码行数:3,代码来源:MockBufferGraph.cs


示例13: MapUpToBuffer

 public SnapshotPoint? MapUpToBuffer(SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextBuffer targetBuffer) {
     int position = 0;
     for (int i = 0; i < _buffers.Count; i++) {
         if (_buffers[i] == targetBuffer) {
             return new SnapshotPoint(point.Snapshot, position + point.Position);
         }
         position += _buffers[i].CurrentSnapshot.Length;
     }
     return null;
 }
开发者ID:omnimark,项目名称:PTVS,代码行数:10,代码来源:MockBufferGraph.cs


示例14: MapDownToFirstMatch

		public SnapshotPoint? MapDownToFirstMatch(SnapshotPoint position, PointTrackingMode trackingMode, Predicate<ITextSnapshot> match, PositionAffinity affinity) {
			if (position.Snapshot == null)
				throw new ArgumentException();
			if (match == null)
				throw new ArgumentNullException(nameof(match));

			if (position.Snapshot.TextBuffer != TopBuffer)
				return null;
			if (!match(TopBuffer.CurrentSnapshot))
				return null;
			return position.TranslateTo(TopBuffer.CurrentSnapshot, trackingMode);
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:12,代码来源:BufferGraph.cs


示例15: CreateMappingPoint

		public IMappingPoint CreateMappingPoint(SnapshotPoint point, PointTrackingMode trackingMode) {
			if (point.Snapshot == null)
				throw new ArgumentException();
			return new MappingPoint(this, point, trackingMode);
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:5,代码来源:BufferGraph.cs


示例16: GetNearestPointInVisualSnapshot

 public SnapshotPoint GetNearestPointInVisualSnapshot(SnapshotPoint editBufferPoint, ITextSnapshot targetVisualSnapshot, PointTrackingMode trackingMode) {
     throw new NotImplementedException();
 }
开发者ID:CforED,项目名称:Node.js-Tools-for-Visual-Studio,代码行数:3,代码来源:MockTextViewModel.cs


示例17: CreateTrackingPoint

 public ITrackingPoint CreateTrackingPoint(int position, PointTrackingMode trackingMode) {
     return new MockTrackingPoint(this, position);
 }
开发者ID:ReedCopsey,项目名称:VisualFSharpPowerTools,代码行数:3,代码来源:MockTextSnapshot.cs


示例18: MapUpToSnapshot

 public SnapshotPoint? MapUpToSnapshot(SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextSnapshot targetSnapshot) {
     throw new NotImplementedException();
 }
开发者ID:omnimark,项目名称:PTVS,代码行数:3,代码来源:MockBufferGraph.cs


示例19: CreateTrackingPoint

 public ITrackingPoint CreateTrackingPoint(int position, PointTrackingMode trackingMode)
 {
     return TextBuffer.CurrentSnapshot.CreateTrackingPoint(position, trackingMode);
 }
开发者ID:AlexanderSher,项目名称:RTVS-Old,代码行数:4,代码来源:TextVersionMock.cs


示例20: MapUpToSnapshot

 public SnapshotPoint? MapUpToSnapshot(SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextSnapshot targetSnapshot) {
     return point;
 }
开发者ID:Microsoft,项目名称:RTVS,代码行数:3,代码来源:BufferGraphMock.cs



注:本文中的PointTrackingMode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Pointer类代码示例发布时间:2022-05-24
下一篇:
C# PointLatLng类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap