Skip to content

Commit d5e6d35

Browse files
SDK regenerated by CI server [ci skip]
1 parent 212a02e commit d5e6d35

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Sources/AsposeWordsCloud/Model/MetafileRenderingOptionsData.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,18 @@ public class MetafileRenderingOptionsData : Codable, WordsApiModel {
9292
}
9393
}
9494

95+
// Field of emulateRenderingToSizeOnPageResolution. Container class for options of metafile rendering.
96+
private var _emulateRenderingToSizeOnPageResolution : Int? = nil;
97+
98+
public var emulateRenderingToSizeOnPageResolution : Int? {
99+
get {
100+
return self._emulateRenderingToSizeOnPageResolution;
101+
}
102+
set {
103+
self._emulateRenderingToSizeOnPageResolution = newValue;
104+
}
105+
}
106+
95107
// Field of renderingMode. Container class for options of metafile rendering.
96108
private var _renderingMode : RenderingMode? = nil;
97109

@@ -120,6 +132,7 @@ public class MetafileRenderingOptionsData : Codable, WordsApiModel {
120132
case emfPlusDualRenderingMode = "EmfPlusDualRenderingMode";
121133
case emulateRasterOperations = "EmulateRasterOperations";
122134
case emulateRenderingToSizeOnPage = "EmulateRenderingToSizeOnPage";
135+
case emulateRenderingToSizeOnPageResolution = "EmulateRenderingToSizeOnPageResolution";
123136
case renderingMode = "RenderingMode";
124137
case useEmfEmbeddedToWmf = "UseEmfEmbeddedToWmf";
125138
case invalidCodingKey;
@@ -135,6 +148,7 @@ public class MetafileRenderingOptionsData : Codable, WordsApiModel {
135148

136149
self.emulateRasterOperations = json["EmulateRasterOperations"] as? Bool;
137150
self.emulateRenderingToSizeOnPage = json["EmulateRenderingToSizeOnPage"] as? Bool;
151+
self.emulateRenderingToSizeOnPageResolution = json["EmulateRenderingToSizeOnPageResolution"] as? Int;
138152
if let raw_renderingMode = json["RenderingMode"] as? String {
139153
self.renderingMode = RenderingMode(rawValue: raw_renderingMode);
140154
}
@@ -147,6 +161,7 @@ public class MetafileRenderingOptionsData : Codable, WordsApiModel {
147161
self.emfPlusDualRenderingMode = try container.decodeIfPresent(EmfPlusDualRenderingMode.self, forKey: .emfPlusDualRenderingMode);
148162
self.emulateRasterOperations = try container.decodeIfPresent(Bool.self, forKey: .emulateRasterOperations);
149163
self.emulateRenderingToSizeOnPage = try container.decodeIfPresent(Bool.self, forKey: .emulateRenderingToSizeOnPage);
164+
self.emulateRenderingToSizeOnPageResolution = try container.decodeIfPresent(Int.self, forKey: .emulateRenderingToSizeOnPageResolution);
150165
self.renderingMode = try container.decodeIfPresent(RenderingMode.self, forKey: .renderingMode);
151166
self.useEmfEmbeddedToWmf = try container.decodeIfPresent(Bool.self, forKey: .useEmfEmbeddedToWmf);
152167
}
@@ -162,6 +177,9 @@ public class MetafileRenderingOptionsData : Codable, WordsApiModel {
162177
if (self.emulateRenderingToSizeOnPage != nil) {
163178
try container.encode(self.emulateRenderingToSizeOnPage, forKey: .emulateRenderingToSizeOnPage);
164179
}
180+
if (self.emulateRenderingToSizeOnPageResolution != nil) {
181+
try container.encode(self.emulateRenderingToSizeOnPageResolution, forKey: .emulateRenderingToSizeOnPageResolution);
182+
}
165183
if (self.renderingMode != nil) {
166184
try container.encode(self.renderingMode, forKey: .renderingMode);
167185
}
@@ -209,6 +227,18 @@ public class MetafileRenderingOptionsData : Codable, WordsApiModel {
209227
}
210228

211229

230+
// Sets emulateRenderingToSizeOnPageResolution. Gets or sets the resolution in pixels per inch for the emulation of metafile rendering to the size on page. This option is used only when EmulateRenderingToSizeOnPage is set to true.The default value is 96. This is a default display resolution. I.e. metafile rendering will emulate the display of the metafile in MS Word with a 100% zoom factor.
231+
public func setEmulateRenderingToSizeOnPageResolution(emulateRenderingToSizeOnPageResolution : Int?) -> MetafileRenderingOptionsData {
232+
self.emulateRenderingToSizeOnPageResolution = emulateRenderingToSizeOnPageResolution;
233+
return self;
234+
}
235+
236+
// Gets emulateRenderingToSizeOnPageResolution. Gets or sets the resolution in pixels per inch for the emulation of metafile rendering to the size on page. This option is used only when EmulateRenderingToSizeOnPage is set to true.The default value is 96. This is a default display resolution. I.e. metafile rendering will emulate the display of the metafile in MS Word with a 100% zoom factor.
237+
public func getEmulateRenderingToSizeOnPageResolution() -> Int? {
238+
return self.emulateRenderingToSizeOnPageResolution;
239+
}
240+
241+
212242
// Sets renderingMode. Gets or sets the option that controls how metafile images should be rendered.
213243
public func setRenderingMode(renderingMode : RenderingMode?) -> MetafileRenderingOptionsData {
214244
self.renderingMode = renderingMode;

0 commit comments

Comments
 (0)