Table of Contents

Method GetSelectedPosition

Namespace
Alternet.Editor.Roslyn
Assembly
Alternet.Editor.Roslyn.v10.dll

GetSelectedPosition(ComboBox, object)

Finds position in source code related to the currently selected item in the ComboBox control.

public static Point GetSelectedPosition(ComboBox comboBox, object document)

Parameters

comboBox ComboBox

ComboBox contains list of syntax elements (classes or methods).

document object

Source code document.

Returns

Point

System.Draw.Point represents start point of current syntax element.