當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。