Adobe 26001360 Scripting Guide - Page 296
Brushes, Table 5.5, Brushes - Properties, Brushes - Methods
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 296 highlights
296 Visual Basic Reference Brushes A collection of brushes in a document. Table 5.5 Brushes - Properties Property R/O Value type What it is Application Count Parent R/O Application object The Illustrator Application object R/O Long The number of objects in the collection R/O Document object The document that contains this Brushes object Table 5.6 Brushes - Methods Method Returns Index(item As Brush) Long item(itemKey) Brush object What it does Returns the index position of the object within the collection Returns an object reference to the object identified by itemKey; by name or index Example 3.1 This script displays the total number of available brushes in the current document. Dim appRef As New Illustrator.Application Dim numBrushes As Long If appRef.Documents.Count > 0 Then numBrushes = appRef.ActiveDocument.Brushes.Count MsgBox ("There are " & numBrushes & " brushes in the document.") End If 12 Aug 03