ノートを取得する
シーケンス図からノートを取得する
ノートを取得するにはISequenceDiagram.Notes
プロパティを用います。
public void GetNotes(ICommandContext c, ICommandParams p)
{
ISequenceDiagram sequenceDiagram = c.App.Workspace.CurrentEditor as ISequenceDiagram;
if (sequenceDiagram == null) return;
// ノートを取得します
INoteShapeCollection notes = sequenceDiagram.Notes;
var no = 1;
foreach (INoteShape note in notes)
{
c.App.Output.WriteLine("sample", $"{no}つ目のノート : {note.Text}");
no++;
}
}