This commit is contained in:
backuppc
2025-11-10 17:25:51 +09:00
parent 6e54633c08
commit 81c11601c5
7 changed files with 178 additions and 6 deletions

View File

@@ -60,6 +60,24 @@ namespace arDev
return sb.ToString();
}
public string ToRtfString()
{
var sb = new System.Text.StringBuilder();
sb.AppendLine(@"{\rtf1\ansi\deff0");
sb.AppendLine(@"{\colortbl ;\red0\green0\blue255;}"); // Color 1 = Blue
sb.AppendLine($"[Sts] : {Sts}" + @"\line");
sb.AppendLine($"[Speed] : {Speed}" + @"\line");
sb.AppendLine($"[Direction] : {Direction}" + @"\line");
sb.AppendLine($"[guidesensor] : {guidesensor}" + @"\line");
sb.AppendLine($"[TagNo] : {TagNo}" + @"\line");
sb.AppendLine($"[CallNo] : {CallNo}" + @"\line");
sb.AppendLine($"[CCANo] : {CCANo}" + @"\line");
sb.AppendLine("}");
return sb.ToString();
}
}
}