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


C# Guid.ToLongString方法代码示例

本文整理汇总了C#中System.Guid.ToLongString方法的典型用法代码示例。如果您正苦于以下问题:C# Guid.ToLongString方法的具体用法?C# Guid.ToLongString怎么用?C# Guid.ToLongString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Guid的用法示例。


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

示例1: LinkView

 public LinkView(Guid mapUid, CompendiumNode originNode, XmlDocument doc, XmlElement parent, LinkType linkType)
     : this(doc, parent, linkType)
 {
     AddAttributeByKeyValue("id", mapUid.ToLongString());
     AddAttributeByKeyValue("created", originNode.Created);
     AddAttributeByKeyValue("lastModified", originNode.LastModified);
 }
开发者ID:chris-tomich,项目名称:Glyma,代码行数:7,代码来源:LinkView.cs

示例2: CompendiumXmlMap

        public CompendiumXmlMap(Guid mapId)
        {
            var doctype = Doc.CreateDocumentType("model", null, "Compendium.dtd", null);
            Doc.AppendChild(doctype);

            var model = Doc.CreateElement(string.Empty, "model", string.Empty);
            var attr = Doc.CreateAttribute("rootview");
            attr.Value = mapId.ToLongString();
            model.Attributes.Append(attr);
            Doc.AppendChild(model);


            _xmlElementViews = Doc.CreateElement(string.Empty, "views", string.Empty);
            model.AppendChild(_xmlElementViews);

            _xmlElementNodes = Doc.CreateElement(string.Empty, "nodes", string.Empty);
            model.AppendChild(_xmlElementNodes);

            _xmlElementLinks = Doc.CreateElement(string.Empty, "links", string.Empty);
            model.AppendChild(_xmlElementLinks);

        }
开发者ID:chris-tomich,项目名称:Glyma,代码行数:22,代码来源:CompendiumXmlMap.cs

示例3: View

 public View(Guid mapId, CompendiumNode node, XmlDocument doc, XmlElement parent)
     : base(doc, parent)
 {
     AddAttributeByKeyValue("viewref", mapId.ToLongString());
     AddAttributeByKeyValue("noderef", node.Id.ToLongString());
     AddAttributeByKeyValue("XPosition", ((int)node.XPosition).ToString(CultureInfo.InvariantCulture));
     AddAttributeByKeyValue("YPosition", ((int)node.YPosition).ToString(CultureInfo.InvariantCulture));
     AddAttributeByKeyValue("created", node.Created);
     AddAttributeByKeyValue("lastModified", node.LastModified);
     AddAttributeByKeyValue("showTags", "true");
     AddAttributeByKeyValue("showText", "true");
     AddAttributeByKeyValue("showTrans", "true");
     AddAttributeByKeyValue("showWeight", "true");
     AddAttributeByKeyValue("smallIcon", "false");
     AddAttributeByKeyValue("hideIcon", "false");
     AddAttributeByKeyValue("labelWrapWidth", "25");
     AddAttributeByKeyValue("fontsize", "12");
     AddAttributeByKeyValue("fontface", "Dialog");
     AddAttributeByKeyValue("fontstyle", "0");
     AddAttributeByKeyValue("foreground", "-16777216");
     AddAttributeByKeyValue("background", "-1");
 }
开发者ID:chris-tomich,项目名称:Glyma,代码行数:22,代码来源:View.cs


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