WpfViewOptionExtensions.IsMouseWheelZoomEnabled(IEditorOptions) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定是否允许鼠标滚轮缩放
public:
[System::Runtime::CompilerServices::Extension]
static bool IsMouseWheelZoomEnabled(Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ options);
public:
[System::Runtime::CompilerServices::Extension]
static bool IsMouseWheelZoomEnabled(Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ options);
public static bool IsMouseWheelZoomEnabled (this Microsoft.VisualStudio.Text.Editor.IEditorOptions options);
static member IsMouseWheelZoomEnabled : Microsoft.VisualStudio.Text.Editor.IEditorOptions -> bool
<Extension()>
Public Function IsMouseWheelZoomEnabled (options As IEditorOptions) As Boolean
参数
- options
- IEditorOptions
编辑器选项集。
返回
如果启用了鼠标滚轮缩放,则为 true ; 否则为false。
注解
禁用鼠标滚轮缩放不会关闭缩放 (它将使用鼠标滚轮禁用缩放功能)