本文整理汇总了C#中Xml.WriteStartElement方法的典型用法代码示例。如果您正苦于以下问题:C# Xml.WriteStartElement方法的具体用法?C# Xml.WriteStartElement怎么用?C# Xml.WriteStartElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Xml
的用法示例。
在下文中一共展示了Xml.WriteStartElement方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteSvg
internal void WriteSvg(Xml.SvgWriter w)
{
w.WriteStartElement("pressure");
w.WriteAttributeString("midiChannel", _midiChannel.ToString());
if(_inputControls != null)
{
_inputControls.WriteSvg(w);
}
w.WriteEndElement(); // trkOff
}
示例2: WriteSvg
internal void WriteSvg(Xml.SvgWriter w)
{
w.WriteStartElement("pressures");
if(_inputControls != null)
{
_inputControls.WriteSvg(w);
}
Debug.Assert(_pressures != null && _pressures.Count > 0);
foreach(Pressure pressure in _pressures)
{
pressure.WriteSvg(w);
}
w.WriteEndElement(); // pressures
}
示例3: WriteSvg
internal void WriteSvg(Xml.SvgWriter w)
{
w.WriteStartElement("trkOffs");
if(_inputControls != null)
{
_inputControls.WriteSvg(w);
}
Debug.Assert(_trkOffs != null && _trkOffs.Count > 0);
foreach(TrkOff trkOff in _trkOffs)
{
trkOff.WriteSvg(w);
}
w.WriteEndElement(); // trkOffs
}
示例4: WriteSvg
/// <summary>
/// This function only writes TrkRefs that refer to Trks stored in external VoiceDefs.
/// Note that successive Trks in the same VoiceDef may, in principle, contain common IUniqueDefs...
/// SVG files contain voice definitions that contain MidiChordDefs and restDefs, but no Trks.
/// </summary>
/// <param name="w"></param>
internal void WriteSvg(Xml.SvgWriter w)
{
w.WriteStartElement("seq");
if(TrkOptions != null)
{
TrkOptions.WriteSvg(w, false);
}
Debug.Assert(TrkRefs != null && TrkRefs.Count > 0);
foreach(TrkRef trkRef in TrkRefs)
{
trkRef.WriteSvg(w);
}
w.WriteEndElement(); // seq
}