[]
坐标定位器,查找引用时基于它可以帮助用户快速找到相关对象的位置。
public abstract class LocationIndicator
坐标定位器,查找引用时基于它可以帮助用户快速找到相关对象的位置。
protected LocationIndicator()
当前坐标定位器的显示文字。
public abstract string DisplayString { get; }
| 类型 | 描述 |
|---|---|
| string |
返回坐标定位器所在链表中的多个定位器的显示文字用"->"拼接后的文字。
public string FullString { get; }
| 类型 | 描述 |
|---|---|
| string |
父节点
public LocationIndicator Parent { get; }
| 类型 | 描述 |
|---|---|
| LocationIndicator |
根坐标定位器。
public LocationIndicator Root { get; }
| 类型 | 描述 |
|---|---|
| LocationIndicator |
拼接一个坐标定位器。
public LocationIndicator Append(LocationIndicator location)
| 类型 | 名称 | 描述 |
|---|---|---|
| LocationIndicator | location | 要拼接的坐标定位器。 |
| 类型 | 描述 |
|---|---|
| LocationIndicator | 返回拼接后的坐标定位器。 |
遍历当前坐标定位器以及该链表中所有的父坐标定位器。
public IEnumerable<LocationIndicator> Enum()
| 类型 | 描述 |
|---|---|
| System.Collections.Generic.IEnumerable<T><LocationIndicator> | 返回包括父坐标定位器在内的链表中的坐标定位器。 |
基于拼接符和过滤方法返回坐标定位器的查找路径。
public string GetPathString(string seperator, Func<LocationIndicator, bool> filter = null)
| 类型 | 名称 | 描述 |
|---|---|---|
| string | seperator | 拼接符 |
| System.Func<T, TResult><LocationIndicator, bool> | filter | 过滤方法 |
| 类型 | 描述 |
|---|---|
| string | 返回查找路径。 |