本文整理匯總了C#中Altaxo.SetNodeContent方法的典型用法代碼示例。如果您正苦於以下問題:C# Altaxo.SetNodeContent方法的具體用法?C# Altaxo.SetNodeContent怎麽用?C# Altaxo.SetNodeContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Altaxo
的用法示例。
在下文中一共展示了Altaxo.SetNodeContent方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
info.SetNodeContent(obj.ToString());
}
示例2: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (FontX)obj;
info.SetNodeContent(s._invariantDescriptionString);
}
示例3: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (ColorSet)obj;
info.SetProperty(GetSerializationRegistrationKey(s), "True"); // Register a property to note that this color set is already serialized.
info.AddValue("Name", s._name);
info.CreateArray("Colors", s._innerList.Length);
foreach (NamedColor c in s)
{
info.CreateElement("e");
info.AddAttributeValue("Name", c.Name);
info.SetNodeContent(c.Color.ToInvariantString());
info.CommitElement();
}
info.CommitArray();
}
示例4: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
System.Drawing.Font s = (System.Drawing.Font)obj;
info.SetNodeContent(sm_Converter.ConvertToInvariantString(s));
}