officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-imagewatermarkoptions.md
Gets or sets the image scaling percentage.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public double Scale { get; set; }
Public Property Scale As Double
| Type | Description |
|---|---|
| Double |
A double value (from 0 (0%) to 65.5 (6550%)) that is the scaling percentage. The 1 value is equal to 100%.
|
You can access this nested property as listed below:
| Object Type | Path to Scale |
|---|---|
| WatermarkFormat |
.ImageOptions .Scale
|
| Type | Description |
|---|---|
| InvalidOperationException |
Throws if the specified value is not between 0 and 65.5
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Scale property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/WatermarkActions.cs#L51
imageWatermarkOptions.Washout = false;
imageWatermarkOptions.Scale = 2;
document.WatermarkManager.SetImage(System.Drawing.Image.FromFile("Documents//DevExpress.png"), imageWatermarkOptions);
word-document-api-examples/CS/CodeExamples/WatermarkActions.cs#L60
imageWatermarkOptions.Washout = false;
imageWatermarkOptions.Scale = 2;
word-document-api-examples/VB/CodeExamples/WatermarkActions.vb#L56
imageWatermarkOptions.Washout = False
imageWatermarkOptions.Scale = 2
' Add an image watermark to all document pages.
See Also