跳转到主要内容
Visual Components 在 Windows 版 FRE 中实现。
ScaleTypes 常量用于表示可用的缩放类型。它们可用作 ImageViewerZoomViewerTextEditor 对象的 ViewScale 属性值。
module ScaleTypes
{
 const int ST_FitToWidth = -1;
 const int ST_FitToHeight = -2;
 const int ST_BestFit = -3;
 const int ST_PixelToPixel = -4;
}

元素

标志名称描述
ST_FitToWidth按宽度适配页面。
ST_FitToHeight按高度适配页面。此常量不适用于 Zoom Viewer。
ST_BestFit自动选择最佳适配方式。此常量不适用于 Zoom Viewer。
ST_PixelToPixel以像素对像素方式显示图像。此常量仅适用于 Zoom Viewer。

适用于

IImageViewer::ViewScale IZoomViewer::ViewScale ITextEditor::ViewScale