本文整理汇总了C#中TextPoint类的典型用法代码示例。如果您正苦于以下问题:C# TextPoint类的具体用法?C# TextPoint怎么用?C# TextPoint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TextPoint类属于命名空间,在下文中一共展示了TextPoint类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:7,代码来源:LabelStatement.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:7,代码来源:DoStatement.cs
示例3: ObjectLiteralElement
public ObjectLiteralElement(Expression Name, Expression Value, TextPoint ColonLocation, TextPoint CommaLocation)
{
this.Name = Name;
this.Value = Value;
this.ColonLocation = ColonLocation;
this.CommaLocation = CommaLocation;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:7,代码来源:ObjectLiteralElement.cs
示例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;
}
开发者ID:Refresh06,项目名称:visualmutator,代码行数:60,代码来源:VisualStudioCodeSearcher.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:7,代码来源:BinaryOperatorExpression.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:7,代码来源:SubscriptExpression.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:7,代码来源:LoopStatement.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:7,代码来源:ForInStatement.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:7,代码来源:CaseClause.cs
示例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;
}
开发者ID:ygavrishov,项目名称:SA.CodeView,代码行数:9,代码来源:Token.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:8,代码来源:QualifiedExpression.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:8,代码来源:DeclarationForInStatement.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:9,代码来源:WithStatement.cs
示例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;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:9,代码来源:CatchClause.cs
示例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>();
}
开发者ID:VirusFree,项目名称:Poderosa,代码行数:11,代码来源:TextSelection.cs
示例16: ForStatement
public ForStatement(Statement.Operation Opcode, Expression Condition, Expression Increment, Statement Body, TextSpan Location, TextSpan HeaderLocation, TextPoint FirstSemicolon, TextPoint SecondSemicolon, TextPoint LeftParen, TextPoint RightParen)
:base(Opcode,Body,Location,LeftParen,RightParen)
{
this.Condition = Condition;
this.Increment = Increment;
this.HeaderLocation = HeaderLocation;
this.FirstSemicolon= FirstSemicolon;
this.SecondSemicolon = SecondSemicolon;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:9,代码来源:ForStatement.cs
示例17: TernaryOperatorExpression
public TernaryOperatorExpression(Expression First, Expression Second, Expression Third, Expression.Operation opcode, TextSpan Location, TextPoint FirstOperatorLocation, TextPoint SecondOperatorLocation)
:base(opcode,Location)
{
this.First = First;
this.Second = Second;
this.Third = Third;
this.FirstOperatorLocation = FirstOperatorLocation;
this.SecondOperatorLocation = SecondOperatorLocation;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:9,代码来源:TernaryOperatorExpression.cs
示例18: SwitchStatement
public SwitchStatement(Expression Value, DList<CaseClause, SwitchStatement> Cases, TextSpan Location, TextSpan HeaderLocation, TextPoint LeftParen, TextPoint RightParen, TextPoint LeftBrace)
:base(Operation.Switch,Location)
{
this.Value = Value;
this.Cases = Cases;
this.HeaderLocation = HeaderLocation;
this.LeftParen = LeftParen;
this.RightParen = RightParen;
this.LeftBrace = LeftBrace;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:10,代码来源:SwitchStatement.cs
示例19: OnLineChanged
// [jt] This handler checks for things like paste operations. In theory we should be able to remove the handler above, but
// I can't get this one to fire reliably... Wonder how much these handlers will slow down the IDE?
private void OnLineChanged(TextPoint StartPoint, TextPoint EndPoint, int Hint)
{
if((Hint & (int)vsTextChanged.vsTextChangedNewline) == 0 &&
(Hint & (int)vsTextChanged.vsTextChangedMultiLine) == 0 &&
(Hint & (int)vsTextChanged.vsTextChangedNewline) == 0 &&
(Hint != 0))
return;
if(mPlugin.App.ActiveDocument.ReadOnly && !mPlugin.App.ActiveDocument.Saved)
P4Operations.EditFile(mPlugin.OutputPane, mPlugin.App.ActiveDocument.FullName);
}
开发者ID:transformersprimeabcxyz,项目名称:_To-Do-unreal-3D-niftyplugins-ben-marsh,代码行数:12,代码来源:AutoCheckoutTextEdit.cs
示例20: FunctionDefinition
public FunctionDefinition(Identifier Name, List<Parameter> Parameters, BlockStatement Body, TextSpan Location, TextSpan HeaderLocation, TextPoint NameLocation, TextPoint LeftParenLocation, TextPoint RightParenLocation)
{
this.Name = Name;
this.Parameters = Parameters;
this.Body = Body;
this.Location = Location;
this.HeaderLocation = HeaderLocation;
this.NameLocation = NameLocation;
this.LeftParenLocation = LeftParenLocation;
this.RightParenLocation = RightParenLocation;
}
开发者ID:alesliehughes,项目名称:olive,代码行数:11,代码来源:FunctionDefinition.cs
注:本文中的TextPoint类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论