public interface Layout extends Serializable
The Layout interface defines the contract for accessing and manipulating a layout within a CAD drawing in the GroupDocs.Viewer component. It provides methods to retrieve information such as the layout name, dimensions, and other properties.
Example usage:
try (Viewer viewer = new Viewer("document.mpt")) {
CadViewInfo viewInfo = (CadViewInfo) viewer.getViewInfo(ViewInfoOptions.forHtmlView());
List<Layout> layouts = viewInfo.getLayouts();
for (Layout layout : layouts) {
// Use the layout object for further operations
}
}
Note: The default implementation of this interface is LayoutImpl.
Viewer,
LayoutImpl| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Checks if this object is equal to the provided object.
|
double |
getHeight()
Retrieves the height of the layout.
|
String |
getName()
Retrieves the name of the layout.
|
double |
getWidth()
Retrieves the width of the layout.
|
void |
setHeight(double height)
Sets the height of the layout.
|
void |
setName(String name)
Sets the name of the layout.
|
void |
setWidth(double width)
Sets the width of the layout.
|
boolean equals(Object other)
Checks if this object is equal to the provided object.
double getHeight()
Retrieves the height of the layout.
String getName()
Retrieves the name of the layout.
double getWidth()
Retrieves the width of the layout.
void setHeight(double height)
height - The height to set for the layout.void setName(String name)
name - The name to set for the layout.void setWidth(double width)
width - The width to set for the layout.Copyright © 2024. All rights reserved.