本文整理汇总了C#中TextPoint类的典型用法代码示例。如果您正苦于以下问题:C# TextPoint类的具体用法?C# TextPoint怎么用?C# TextPoint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TextPoint类属于命名空间,在下文中一共展示了TextPoint类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LabelStatement
public LabelStatement(Identifier Label, Statement Labeled, TextSpan Location, TextPoint Colon)
:base(Operation.Label,Location)
{
this.Label = Label;
this.Labeled = Labeled;
this.Colon = Colon;
}
示例2: DoStatement
public DoStatement(Statement Body, Expression Condition, TextSpan Location, TextSpan HeaderLocation, TextPoint While, TextPoint LeftParen, TextPoint RightParen)
:base(Operation.Do, Body, Location, LeftParen, RightParen)
{
this.While = While;
this.Condition = Condition;
this.HeaderLocation = HeaderLocation;
}
示例3: ObjectLiteralElement
public ObjectLiteralElement(Expression Name, Expression Value, TextPoint ColonLocation, TextPoint CommaLocation)
{
this.Name = Name;
this.Value = Value;
this.ColonLocation = ColonLocation;
this.CommaLocation = CommaLocation;
}
示例4: GetCodeElementAtTextPoint
private CodeElement GetCodeElementAtTextPoint(vsCMElement eRequestedCodeElementKind,
CodeElements colCodeElements, TextPoint objTextPoint)
{
// CodeElement objCodeElement = default(CodeElement);
CodeElement objResultCodeElement = default(CodeElement);
CodeElements colCodeElementMembers = default(CodeElements);
CodeElement objMemberCodeElement = default(CodeElement);
if ((colCodeElements != null))
{
foreach (CodeElement objCodeElement in colCodeElements)
{
if (objCodeElement.StartPoint.GreaterThan(objTextPoint))
{
// The code element starts beyond the point
}
else if (objCodeElement.EndPoint.LessThan(objTextPoint))
{
// The code element ends before the point
// The code element contains the point
}
else
{
if (objCodeElement.Kind == eRequestedCodeElementKind)
{
// Found
objResultCodeElement = objCodeElement;
}
// We enter in recursion, just in case there is an inner code element that also
// satisfies the conditions, for example, if we are searching a namespace or a class
colCodeElementMembers = GetCodeElementMembers(objCodeElement);
objMemberCodeElement = GetCodeElementAtTextPoint(eRequestedCodeElementKind, colCodeElementMembers, objTextPoint);
if ((objMemberCodeElement != null))
{
// A nested code element also satisfies the conditions
objResultCodeElement = objMemberCodeElement;
}
break; // TODO: might not be correct. Was : Exit For
}
}
}
return objResultCodeElement;
}
示例5: BinaryOperatorExpression
public BinaryOperatorExpression(Expression Left, Expression Right, Expression.Operation Opcode, TextSpan Location, TextPoint OperatorLocation)
: base(Opcode,Location)
{
this.Left = Left;
this.Right = Right;
this.operatorLocation = OperatorLocation;
}
示例6: SubscriptExpression
public SubscriptExpression(Expression Base, Expression Subscript, TextSpan Location, TextPoint LeftBracketLocation)
: base(Operation.Subscript, Location)
{
this.Base = Base;
this.Subscript = Subscript;
this.LeftBracketLocation = LeftBracketLocation;
}
示例7: LoopStatement
public LoopStatement(Statement.Operation Opcode, Statement Body, TextSpan Location, TextPoint LeftParen, TextPoint RightParen)
:base(Opcode,Location)
{
this.Body = Body;
this.LeftParen = LeftParen;
this.RightParen = RightParen;
}
示例8: ForInStatement
public ForInStatement(Statement.Operation Opcode, Expression Collection, Statement Body, TextSpan Location, TextSpan HeaderLocation, TextPoint In, TextPoint LeftParen, TextPoint RightParen)
:base(Opcode, Body, Location, LeftParen, RightParen)
{
this.Collection = Collection;
this.HeaderLocation = HeaderLocation;
this.In = In;
}
示例9: CaseClause
public CaseClause(DList<Statement, CaseClause> Children, TextSpan Location, TextSpan HeaderLocation, TextPoint Colon)
{
this.colon = Colon;
this.location = Location;
this.Children = Children;
this.HeaderLocation = HeaderLocation;
}
示例10: Token
//=========================================================================================
public Token(string typeName, string text, TextPoint start, TextPoint end, TextStyle style)
{
this.TokenTypeName = typeName;
this.Text = text;
this.Start = start;
this.End = end;
this.Style = style;
}
示例11: QualifiedExpression
public QualifiedExpression(Expression Base, Identifier Qualifier, TextSpan Location, TextPoint DotLocation, TextPoint QualifierLocation)
:base(Operation.Qualified, Location)
{
this.Base = Base;
this.Qualifier = Qualifier;
this.DotLocation = DotLocation;
this.QualifierLocation = QualifierLocation;
}
示例12: DeclarationForInStatement
public DeclarationForInStatement(VariableDeclaration Item, Expression Collection, Statement Body, TextSpan Location, TextSpan HeaderLocation, TextPoint In, TextPoint LeftParen, TextPoint RightParen)
:base(Operation.DeclarationForIn,Collection,Body,Location,HeaderLocation,In,LeftParen,RightParen)
{
this.Item = Item;
this.In = In;
this.LeftParen = LeftParen;
this.RightParen = RightParen;
}
示例13: WithStatement
public WithStatement(Expression Scope, Statement Body, TextSpan Location, TextSpan HeaderLocation, TextPoint LeftParen, TextPoint RightParen)
:base(Operation.With,Location)
{
this.LeftParen = LeftParen;
this.RightParen = RightParen;
this.Body = Body;
this.HeaderLocation = HeaderLocation;
this.Scope = Scope;
}
示例14: CatchClause
public CatchClause(Identifier Name, BlockStatement Handler, TextSpan Location, TextSpan NameLocation, TextPoint LeftParen, TextPoint RightParen)
{
this.Name = Name;
this.Handler = Handler;
this.Location = Location;
this.NameLocation = NameLocation;
this.leftParen = LeftParen;
this.rightParen = RightParen;
}
示例15: TextSelection
//������Ɖ����t���O
//private bool _disabledTemporary;
public TextSelection(CharacterDocumentViewer owner)
{
_owner = owner;
_forwardPivot = new TextPoint();
_backwardPivot = new TextPoint();
_forwardDestination = new TextPoint();
_backwardDestination = new TextPoint();
_listeners = new List<ISelectionListener>();
}