public HResult Hide() { try { VerifyNotDisposed(); _owner.IsHidden = true; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetRight(out IStream stream) { stream = null; try { stream = Control.GetRight(); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult CreateInstance(out INiWaitDialog result) { result = null; try { result = new NiWaitDialog(this, _synchronizationContext); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetSize(out int length) { length = 0; try { length = Document.TextLength; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetAllButtons(out INiCommandBarButton[] buttons) { buttons = null; try { buttons = _keyboardMappingManager._commandManager._objects.Values.OfType <INiCommandBarButton>().ToArray(); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetHandle(out IntPtr handle) { handle = IntPtr.Zero; try { handle = _active.Handle; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult CreateJob(INiJobHandler handler, out INiJob job) { job = null; try { job = new NiJob(this, handler); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetExpandedInformation(out string expandedInformation) { expandedInformation = null; try { expandedInformation = _taskDialog.ExpandedInformation; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetExpandedControlText(out string expandedControlText) { expandedControlText = null; try { expandedControlText = _taskDialog.ExpandedControlText; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetContent(out string content) { content = null; try { content = _taskDialog.Content; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetVerificationText(out string verificationText) { verificationText = null; try { verificationText = _taskDialog.VerificationText; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetMainInstruction(out string mainInstruction) { mainInstruction = null; try { mainInstruction = _taskDialog.MainInstruction; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetWindowTitle(out string windowTitle) { windowTitle = null; try { windowTitle = _taskDialog.WindowTitle; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult CreateTaskDialog(out INiTaskDialog taskDialog) { taskDialog = null; try { taskDialog = new NiTaskDialog(this); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetDefaultRadioButton(out int id) { id = 0; try { id = _taskDialog.DefaultRadioButton; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetCollapsedControlText(out string collapsedControlText) { collapsedControlText = null; try { collapsedControlText = _taskDialog.CollapsedControlText; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetWidth(out int width) { width = 0; try { width = (int)_taskDialog.Width; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetFooter(out string footer) { footer = null; try { footer = _taskDialog.Footer; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
internal HResult GetDocumentWindowIterator(out INiIterator <INiWindowFrame> iterator) { iterator = null; try { iterator = new NiDocumentWindowIterator(((IEnumerable <IDockContent>)_dockPanel.Documents.ToArray()).GetEnumerator()); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetCommonButtons(out NiTaskDialogCommonButtons commonButtons) { commonButtons = 0; try { commonButtons = TaskDialogUtil.DecodeCommonButtons(_taskDialog.CommonButtons); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetLineCount(out int lineCount) { lineCount = 0; try { lineCount = Document.TotalNumberOfLines; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetMainIcon(out NiTaskDialogIcon mainIcon) { mainIcon = 0; try { mainIcon = TaskDialogUtil.DecodeIcon(_taskDialog.MainIcon); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult LoadKeyboardMappings(out INiKeyboardMappings mappings) { mappings = null; try { mappings = _keyboardMappingManager.Load(); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetMainIcon(out IResource mainIcon) { mainIcon = null; try { mainIcon = _mainIcon; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetMode(out NiDiffViewerMode mode) { mode = 0; try { mode = Control.Mode; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetFooterIcon(out NiTaskDialogIcon footerIcon) { footerIcon = 0; try { footerIcon = TaskDialogUtil.DecodeIcon(_taskDialog.FooterIcon); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetReadOnly(out bool readOnly) { readOnly = false; try { readOnly = Control.ReadOnly; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetFooterIcon(out IResource footerIcon) { footerIcon = null; try { footerIcon = _footerIcon; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetOtherArguments(out string[] arguments) { arguments = null; try { arguments = _remainingArguments.ToArray(); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult SetCaption(string caption) { try { VerifyNotDisposed(); _owner.Text = _owner.TabText = caption; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }