This method selects the object whose number is specified.

[Visual Basic] Public Function SelectObject(index As Integer) As Boolean
[C#]public bool SelectObject(int index);

Parameters

index

The number of the object to be selected.

Return Value

Returns True if successful, otherwise returns False.

Explanation

The SelectObject method selects the object whose number is specified. This method acts in the same way as clicking an object to select it.

This method is enabled when the EditKind property is set to a value of KindOfEdit.Select. Even if the EditKind property is set to a value other than KindOfEdit.Select, executing this method will result in the EditKind property being automatically set to KindOfEdit.Select.

Executing the SelectObject method sets the all relevant property values for the selected object whose names begin with "SelectObject....".

Below is a list of these properties:
SelectedObjectAngle, SelectedObjectAspectRatio, SelectedObjectBackColor, SelectedObjectBackColorOpacity, SelectedObjectBorder, SelectedObjectBorderColor, SelectedObjectBorderColorOpacity, SelectedObjectBorderShape, SelectedObjectClosePenLine, SelectedObjectDashStyle, SelectedObjectDoubleLine, SelectedObjectDrawPoints, SelectedObjectEndArrowCap, SelectedObjectEndArrowCapFilled, SelectedObjectEndArrowCapSize, SelectedObjectEndLineCap, SelectedObjectFill, SelectedObjectFontBold, SelectedObjectFontItalic, SelectedObjectFontName, SelectedObjectFontSize, SelectedObjectFontStrikeout, SelectedObjectFontUnderline, SelectedObjectForeColor, SelectedObjectForeColorOpacity, SelectedObjectImageFileName, SelectedObjectKind, SelectedObjectLineJoin, SelectedObjectNumber, SelectedObjectPenWidth, SelectedObjectRightToLeft, SelectedObjectRoundRectangleRadius, SelectedObjectStartArrowCap, SelectedObjectStartArrowCapFilled, SelectedObjectStartArrowCapSize, SelectedObjectStartLineCap, SelectedObjectText, SelectedObjectTextAlign, SelectedObjectVerticalText, SelectedObjectWordWrap.

 

If a number of an object that does not exist is set in this method's parameter, then this method will return False and the SelectedObjectNumber property will be set to 0.

Also See

ImageKit.Edit Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET3 is created by Newtone Corporation