VsTextViewClass.CenterLines(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Places the specified lines of text in the center of the view.
public:
virtual int CenterLines(int iTopLine, int iCount) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::CenterLines;
public:
virtual int CenterLines(int iTopLine, int iCount);
public:
virtual int CenterLines(int iTopLine, int iCount) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::CenterLines;
virtual int CenterLines(int iTopLine, int iCount);
public virtual int CenterLines (int iTopLine, int iCount);
abstract member CenterLines : int * int -> int
override this.CenterLines : int * int -> int
Public Overridable Function CenterLines (iTopLine As Integer, iCount As Integer) As Integer
Parameters
- iTopLine
- Int32
[in] First line to place in the center of the view.
- iCount
- Int32
[in] Total number of lines to place in the center of the view.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.