本文整理汇总了C#中TextBuffer.GetIdentifierBeforeColumn方法的典型用法代码示例。如果您正苦于以下问题:C# TextBuffer.GetIdentifierBeforeColumn方法的具体用法?C# TextBuffer.GetIdentifierBeforeColumn怎么用?C# TextBuffer.GetIdentifierBeforeColumn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextBuffer
的用法示例。
在下文中一共展示了TextBuffer.GetIdentifierBeforeColumn方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestGetIdentifierBeforeColumn04
public void TestGetIdentifierBeforeColumn04()
{
TextBuffer currentBuffer = new TextBuffer("element = foo(sampleArray[20][a._b.c]);");
Assert.AreEqual("sampleArray[20][a._b.c]", currentBuffer.GetIdentifierBeforeColumn(0, 37));
}
示例2: TestGetIdentifierBeforeColumn05
public void TestGetIdentifierBeforeColumn05()
{
TextBuffer currentBuffer = new TextBuffer("xCoords = abs(myMeshes[6][3].Triangles[0][6].Sides[2].StartPoint.X);");
Assert.AreEqual("myMeshes[6][3].Triangles[0][6].Sides[2].StartPoint", currentBuffer.GetIdentifierBeforeColumn(0, 64));
}
示例3: TestGetIdentifierBeforeColumn01
public void TestGetIdentifierBeforeColumn01()
{
TextBuffer currentBuffer = new TextBuffer("array = 0..a.b.c..2;");
Assert.AreEqual("a.b.c", currentBuffer.GetIdentifierBeforeColumn(0, 16));
}