Hi, FieldToa.EntrySeparator in FieldToa class is by default dotted and bolded which separates the Toa Entry and Toa Pages. Could you please let me know if we can remove the bold property and set the dotted to normal instead of bold?
@KCSR by default TOA field take the previous format to apply to the table separator, please run builder.Font.ClearFormatting(); to clear the existing format or set the desired font format before insert the TOA field.
To learn more about TOA field, please check here
Additionally, here is a functional example:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Font.Color = Color.Green;
builder.Font.Name = "Arial Black";
builder.Writeln("Green line");
// Comment or uncomment the following line to see the changes
builder.Font.ClearFormatting();
FieldToa fieldToa = (FieldToa)builder.InsertField(FieldType.FieldTOA, false);
fieldToa.EntryCategory = "1";
fieldToa.UseHeading = true;
fieldToa.BookmarkName = "MyBookmark";
fieldToa.EntrySeparator = " \t p.";
fieldToa.PageNumberListSeparator = " & p. ";
fieldToa.UsePassim = true;
fieldToa.PageRangeSeparator = " to ";
fieldToa.RemoveEntryFormatting = true;
builder.InsertBreak(BreakType.PageBreak);
FieldTA fieldTA = InsertToaEntry(builder, "1", "Source 1");
builder.StartBookmark("MyBookmark");
fieldTA = InsertToaEntry(builder, "2", "Source 2");
fieldTA = InsertToaEntry(builder, "1", "Source 3");
fieldTA.ShortCitation = "S.3";
fieldTA = InsertToaEntry(builder, "1", "Source 2");
fieldTA.IsBold = false;
fieldTA.IsItalic = true;
fieldTA = InsertToaEntry(builder, "1", "Source 3");
fieldTA.PageRangeBookmarkName = "MyMultiPageBookmark";
builder.StartBookmark("MyMultiPageBookmark");
builder.InsertBreak(BreakType.PageBreak);
builder.InsertBreak(BreakType.PageBreak);
builder.InsertBreak(BreakType.PageBreak);
builder.EndBookmark("MyMultiPageBookmark");
for (int i = 0; i < 5; i++)
{
InsertToaEntry(builder, "1", "Source 4");
}
builder.EndBookmark("MyBookmark");
doc.UpdateFields();
doc.Save(@"C:\Temp\Field.TOA.TA.docx");
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.