AppKit.TextKit.Formatter.SourceTextViewDelegate.CellClicked C# (CSharp) Method

CellClicked() public method

Called when the cell is clicked.
Because a custom Delegate has been attached to the NSTextView, the normal events will not work so we are using this method to call custom AppKit.TextKit.Formatter.SourceTextView events instead.
public CellClicked ( NSTextView textView, NSTextAttachmentCell cell, CGRect cellFrame, nuint charIndex ) : void
textView NSTextView The .
cell NSTextAttachmentCell The cell being acted upon.
cellFrame CGRect The onscreen frame of the cell.
charIndex nuint The index of the character clicked.
return void
		public override void CellClicked (NSTextView textView, NSTextAttachmentCell cell, CGRect cellFrame, nuint charIndex)
		{
			// Pass through to Text Editor event
			TextEditor.RaiseSourceCellClicked(TextEditor, new NSTextViewClickedEventArgs(cell, cellFrame, charIndex));
		}