Gets the current document's Dictionary. The Dictionary can be used to contain reused resources (e.g. images used in multiple places in the document).

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[BrowsableAttribute(false)]
[XmlElementAttribute("Dictionary")]
public Dictionary Dictionary { get; }
Visual Basic
<BrowsableAttribute(False)> _
<XmlElementAttribute("Dictionary")> _
Public ReadOnly Property Dictionary As Dictionary
	Get

Implements

IStyleOwner..::..Dictionary

Examples

The following example adds an image, for example, an image that is used in several places in your document, to the dictionary:

Copy CodeVisual Basic
Me.C1PrintDocument1.Dictionary.Add(New C1.C1Preview.DictionaryImage("image1", Image.FromFile("myImage.jpg")))
Copy CodeC#
this.c1PrintDocument1.Dictionary.Add(new C1.C1Preview.DictionaryImage("image1", Image.FromFile("myImage.jpg")));

To use that image, set either the BackgroundImageName property on styles, or the ImageName property on render images, for example, like this:

Copy CodeVisual Basic
Dim ri As New C1.C1Preview.RenderImage()
ri.ImageName = "image1"
Copy CodeC#
RenderImage ri = new C1.C1Preview.RenderImage();
ri.ImageName = "image1";

For details on the Dictionary property, see the Dictionary topic.

See Also