// Get the ComposedField instance
ComposedField composed = movieEntry.Get<ComposedField>("synopsis");
// Add a heading
composed.Add("heading", "A long time ago in a galaxy far, far away...");
// Add a location
composed.Add("hq", new Location(52.415936, -2.6417701));
List methods
C#
1
2
3
4
5
6
7
8
9
10
11
// Get the ComposedField instance
ComposedField composed = movieEntry.Get<ComposedField>("synopsis");
// Add a item to the end of the field
composed.Add(new ComposedFieldItem("paragraph", "<p>The story starts with...</p>"));
// Insert an item at a specific index
composed.Insert(4, new ComposedFieldItem("featureQuote", new Quote("I find your lack of faith disturbing.", "Darth Vader")));
// Remove an item at a specific index
composed.RemoveAt(3);