当前位置: 首页>>代码示例>>C#>>正文


C# SymbolType类代码示例

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


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

示例1: Symbol

 protected Symbol(SymbolType type, string name, Symbol parent)
 {
     _type = type;
     _name = name;
     _parent = parent;
     _transformAllowed = true;
 }
开发者ID:mobilligy,项目名称:scriptsharp,代码行数:7,代码来源:Symbol.cs

示例2: ParameterSymbol

 /// <summary>
 /// Constructor for parameter symbol
 /// </summary>
 /// <param name="name"></param>
 /// <param name="symbolType"></param>
 /// <param name="parameter"></param>
 public ParameterSymbol(string name,SymbolType symbolType, Parameter parameter,
     VariableType variableType)
     : base(name,symbolType)
 {
     base.variableType = variableType;
     this.parameter = parameter;
 }
开发者ID:mikeabrahamsen,项目名称:uPascalCompiler,代码行数:13,代码来源:ParameterSymbol.cs

示例3: Symbol

 public Symbol(char _symbol, SymbolType _type, Interpreter _interpreter, string _interpreterMethod)
 {
     symbol = _symbol;
     type = _type;
     interpreter = _interpreter;
     interpreterMethod = _interpreterMethod;
 }
开发者ID:famerij,项目名称:EdgeGraph,代码行数:7,代码来源:Symbol.cs

示例4: GrammarNodeDExistsVisitor

 public GrammarNodeDExistsVisitor(String nameIn, SymbolType symbolTypeIn)
 {
     name = nameIn;
     symbolType = symbolTypeIn;
     rulesVisited = new List<NonterminalHeadD>();
     found = false;
 }
开发者ID:adamashton,项目名称:VisualisingAndDesigningGrammars,代码行数:7,代码来源:GrammarNodeDExistsVisitor.cs

示例5: CreateSymbolFromVectorStyle

        private static XamlShapes.Shape CreateSymbolFromVectorStyle(VectorStyle style, double opacity = 1, SymbolType symbolType = SymbolType.Ellipse, double width = SymbolStyle.DefaultWidth, double height = SymbolStyle.DefaultHeight)
        {
            var path = new XamlShapes.Path { StrokeThickness = 0 };  //The SL StrokeThickness default is 1 which causes blurry bitmaps

            if (style.Fill != null && (style.Fill.Color != null || style.Fill.BitmapId != -1))
                path.Fill = style.Fill.ToXaml();
            else
                path.Fill = new XamlMedia.SolidColorBrush(XamlColors.Transparent);

            if (style.Outline != null)
            {
                path.Stroke = new XamlMedia.SolidColorBrush(style.Outline.Color.ToXaml());
                path.StrokeThickness = style.Outline.Width;
                path.StrokeDashArray = style.Outline.PenStyle.ToXaml();
            }

            if (symbolType == SymbolType.Ellipse)
                path.Data = CreateEllipse(width, height);
            else
                path.Data = CreateRectangle(width, height);

            path.Opacity = opacity;

            return path;
        }
开发者ID:jdeksup,项目名称:Mapsui.Net4,代码行数:25,代码来源:GeometryRenderer.cs

示例6: AddCurve

        public void AddCurve(GraphPane pane, string name, string measure, Color color, SymbolType sType, int capacity)
        {
            _dataPointList = new RollingPointPairList(capacity);

            // Добавим кривую пока еще без каких-либо точек
            _myCurve = pane.AddCurve(string.Format("{0} ({1})",name,measure), _dataPointList, color, sType);
        }
开发者ID:Kelvin312,项目名称:KantVino,代码行数:7,代码来源:SingleGraph.cs

示例7: FunctionSymbol

 /// <summary>
 /// Constuctor for function symbol
 /// </summary>
 /// <param name="name"></param>
 /// <param name="symbolType"></param>
 /// <param name="label"></param>
 /// <param name="paramList"></param>
 /// <param name="returnVar"></param>
 public FunctionSymbol(string name,SymbolType symbolType,string label,
     List<Parameter> paramList,VariableType returnVar)
     : base(name,symbolType,label,paramList)
 {
     this.returnVar = returnVar;
     this.variableType = returnVar;
 }
开发者ID:mikeabrahamsen,项目名称:uPascalCompiler,代码行数:15,代码来源:FunctionSymbol.cs

示例8: Label

 /// <summary>
 /// Initializes a new instance of the <see cref="Label"/> class
 /// that defines a symbol with the specified type and identifier.
 /// </summary>
 /// <param name="identifier">The identifier of the defined symbol.</param>
 /// <param name="symbolType">The type of symbol defined.</param>
 /// <remarks>
 /// The <see cref="DefinedSymbol"/> property holds the symbol that is defined.
 /// </remarks>
 public Label(string identifier, SymbolType symbolType)
     : this(new Symbol(symbolType, identifier))
 {
     #region Contract
     Contract.Requires<InvalidEnumArgumentException>(Enum.IsDefined(typeof(SymbolType), symbolType));
     #endregion
 }
开发者ID:Konctantin,项目名称:CSharpAssembler,代码行数:16,代码来源:Label.cs

示例9: Symbol

 /// <summary>
 /// Initializes a new instance of the <see cref="Symbol"/> class.
 /// </summary>
 /// <param name="symbolType">The type of symbol.</param>
 public Symbol(SymbolType symbolType)
     : this(symbolType, null)
 {
     #region Contract
     Contract.Requires<InvalidEnumArgumentException>(Enum.IsDefined(typeof(SymbolType), symbolType));
     #endregion
 }
开发者ID:Konctantin,项目名称:CSharpAssembler,代码行数:11,代码来源:Symbol.cs

示例10: ClassSymbol

 protected ClassSymbol(SymbolType type, string name, NamespaceSymbol parent)
     : base(type, name, parent)
 {
     _inheritanceDepth = -1;
     _minimizationDepth = -1;
     _transformationCookie = -1;
 }
开发者ID:mobilligy,项目名称:scriptsharp,代码行数:7,代码来源:ClassSymbol.cs

示例11: create

 public static Symbol create(SymbolType type)
 {
     Transform t = null;
     switch (type) {
         case SymbolType.Resistor:
             t = Instantiate(parent.resistorSym.transform) as Transform;
             break;
         case SymbolType.Lamp:
             t = Instantiate(parent.lampSym.transform) as Transform;
             break;
         case SymbolType.Switch:
             t = Instantiate(parent.switchSym.transform) as Transform;
             break;
         case SymbolType.Battery:
             t = Instantiate(parent.batterySym.transform) as Transform;
             break;
         case SymbolType.And:
             t = Instantiate(parent.andSym.transform) as Transform;
             break;
         case SymbolType.Or:
             t = Instantiate(parent.orSym.transform) as Transform;
             break;
         case SymbolType.Not:
             t = Instantiate(parent.notSym.transform) as Transform;
             break;
         default:
             return null;
     }
     return t.GetComponent(typeof(Symbol)) as Symbol;
 }
开发者ID:si2dharth,项目名称:Learntronics,代码行数:30,代码来源:Symbol.cs

示例12: LineHelper

 /// <summary>
 /// 
 /// </summary>
 /// <param name="text"></param>
 /// <param name="color"></param>
 /// <param name="width"></param>
 /// <param name="symbol"></param>
 public LineHelper(string text, Color color, int width, SymbolType symbol)
 {
     this.Text = text;
     this.Color = color;
     this.LineWidth = width;
     this.SymbolType = symbol;
 }
开发者ID:hkiaipc,项目名称:fnq,代码行数:14,代码来源:LineHelper.cs

示例13: ProcedureSymbol

 /// <summary>
 /// Constructor for Procedure Symbol
 /// </summary>
 /// <param name="name"></param>
 /// <param name="symbolType"></param>
 /// <param name="label"></param>
 /// <param name="paramList"></param>
 public ProcedureSymbol(string name, SymbolType symbolType,string label,
     List<Parameter> paramList)
     : base(name, symbolType)
 {
     this.label = label;
     this.paramList = paramList;
 }
开发者ID:mikeabrahamsen,项目名称:uPascalCompiler,代码行数:14,代码来源:ProcedureSymbol.cs

示例14: TypeSymbol

        protected TypeSymbol(SymbolType type, string name, NamespaceSymbol parent)
            : base(type, name, parent) {
            Debug.Assert(parent != null);

            _memberTable = new Dictionary<string, MemberSymbol>();
            _members = new List<MemberSymbol>();
            _applicationType = true;
        }
开发者ID:fugaku,项目名称:scriptsharp,代码行数:8,代码来源:TypeSymbol.cs

示例15: Symbol

 /// <summary>
 /// コンストラクタ
 /// </summary>
 public Symbol(SpriteUV sprite, SymbolType type)
 {
     sprite.Scale = new Sce.PlayStation.Core.Vector2(1.0f);
     sprite.Quad.S = sprite.TextureInfo.TextureSizef;
     sprite.CenterSprite();
     Image = sprite;
     Type = type;
 }
开发者ID:kkkkkt,项目名称:PSM_SDK_SLOT,代码行数:11,代码来源:Symbol.cs


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