Packagecom.adobe.illustrator
Classpublic class DocumentPreset
InheritanceDocumentPreset Inheritance IllustratorHostObject Inheritance CSHostObject Inheritance flash.utils.Proxy

Since : CS5

the new document preset to use for creating a new document



Public Properties
 PropertyDefined By
  artboardLayout : DocumentArtboardLayout
layout for artboards ( default: DocumentArtboardLayout.GridByRow )
DocumentPreset
  artboardRowsOrCols : Number
Number of rows (for rows layout) OR column(for column layouts)of artboards.Range is 1 to (docNumArtboards - 1) or 1 for single row or column layouts ( default: 1 )
DocumentPreset
  artboardSpacing : Number
spacing between artboards ( default: 20.0 )
DocumentPreset
  colorMode : DocumentColorSpace
the color mode for the new document ( default: DocumentColorSpace.CMYK )
DocumentPreset
  height : Number
the height for the new document ( default: 792.0 )
DocumentPreset
 InheritedhostObjectDelegate : HostObject
Getter for the delegate
CSHostObject
  numArtboards : Number
number of artboards for new document.Range (1:100).
DocumentPreset
 Inheritedparent : *
[read-only]
IllustratorHostObject
  previewMode : DocumentPreviewMode
the preview mode for the new document ( default: DocumentPreviewMode.DefaultPreview )
DocumentPreset
  rasterResolution : DocumentRasterResolution
the raster resolution for the new document ( default: DocumentRasterResolution.ScreenResolution )
DocumentPreset
  title : String
the title for the new document ( default: Untitled )
DocumentPreset
  transparencyGrid : DocumentTransparencyGrid
the transparency grid for the new document ( default: DocumentTransparencyGrid.TransparencyGridNone )
DocumentPreset
  units : RulerUnits
the units for the new document ( default: RulerUnits.Points )
DocumentPreset
  width : Number
the width for the new document ( default: 612.0 )
DocumentPreset
Public Methods
 MethodDefined By
 Inherited
filterArgsForHBAPI(args:Array):Array
[static] Function to clean up the argument list and put it into a format that makes sense for HBAPI.
CSHostObject
 Inherited
filterSingleObjectForHBAPI(value:Object):Object
[static]
CSHostObject
 Inherited
getClassObjectForName(className:String):HostObject
[static] This returns a "Class" object, meaning, a HostObject that can be used to make static function calls or get static properties
CSHostObject
 Inherited
getSpecialTranslation(className:String, ho:HostObject, expectedReturnType:Class, ownerName:String):*
[static]
CSHostObject
 Inherited
hostCall(name:String, expectedReturnType:Class, rawargs:Array):*
Encapsulates a function call to the host
CSHostObject
 Inherited
hostCallStatic(className:String, methodName:String, expectedReturnType:Class, rawargs:Array):*
[static] Implements a safe call of a static method on the host
CSHostObject
 Inherited
hostGet(name:String, expectedReturnType:Class):*
Encapsulates a property get to the host
CSHostObject
 Inherited
hostGetIndex(idx:Object, expectedReturnType:Class):*
Encapsulates a indexed get to the host
CSHostObject
 Inherited
hostGetStatic(className:String, propertyName:String, expectedReturnType:Class):*
[static] Implements a safe get of a static property on the host Used by for instance, all the enum implementations.
CSHostObject
 Inherited
hostSet(name:String, rawvalue:*):void
Encapsulates a property set to the host
CSHostObject
 Inherited
hostSetStatic(className:String, propertyName:String, rawvalue:*):*
[static] Implements a safe set of a static property on the host
CSHostObject
 Inherited
isDescendedFrom(clz:Class, ancClass:Class):Boolean
[static] Efficiently determines whether or not one class descends from another in inheritance hierarchy- class relationships are cached by the ClassUtils implementation- (uses org.as3commons lib to quickly discover class hierarchy.
CSHostObject
 Inherited
replaceDefaultArgs(args:Array, defaultArgs:Array):Array
Function to tidy up arguments prior to call.
CSHostObject
 Inherited
wrapReturnedHostObject(rawObject:Object, expectedReturnType:Class, client:CSHostObject, propertyName:String):*
[static] Method used on static/normal get/ hostcalls
CSHostObject
Protected Methods
 MethodDefined By
 Inherited
createWithArgs(args:Array):void
CSHostObject
 Inherited
hostCreate(args:Array):void
CSHostObject
Property Detail
artboardLayoutproperty
artboardLayout:DocumentArtboardLayout

Since : CS5

layout for artboards ( default: DocumentArtboardLayout.GridByRow )


Implementation
    public function get artboardLayout():DocumentArtboardLayout
    public function set artboardLayout(value:DocumentArtboardLayout):void
artboardRowsOrColsproperty 
artboardRowsOrCols:Number

Since : CS5

Number of rows (for rows layout) OR column(for column layouts)of artboards.Range is 1 to (docNumArtboards - 1) or 1 for single row or column layouts ( default: 1 )


Implementation
    public function get artboardRowsOrCols():Number
    public function set artboardRowsOrCols(value:Number):void
artboardSpacingproperty 
artboardSpacing:Number

Since : CS5

spacing between artboards ( default: 20.0 )


Implementation
    public function get artboardSpacing():Number
    public function set artboardSpacing(value:Number):void
colorModeproperty 
colorMode:DocumentColorSpace

Since : CS5

the color mode for the new document ( default: DocumentColorSpace.CMYK )


Implementation
    public function get colorMode():DocumentColorSpace
    public function set colorMode(value:DocumentColorSpace):void
heightproperty 
height:Number

Since : CS5

the height for the new document ( default: 792.0 )


Implementation
    public function get height():Number
    public function set height(value:Number):void
numArtboardsproperty 
numArtboards:Number

Since : CS5

number of artboards for new document.Range (1:100). ( default: 1 )


Implementation
    public function get numArtboards():Number
    public function set numArtboards(value:Number):void
previewModeproperty 
previewMode:DocumentPreviewMode

Since : CS5

the preview mode for the new document ( default: DocumentPreviewMode.DefaultPreview )


Implementation
    public function get previewMode():DocumentPreviewMode
    public function set previewMode(value:DocumentPreviewMode):void
rasterResolutionproperty 
rasterResolution:DocumentRasterResolution

Since : CS5

the raster resolution for the new document ( default: DocumentRasterResolution.ScreenResolution )


Implementation
    public function get rasterResolution():DocumentRasterResolution
    public function set rasterResolution(value:DocumentRasterResolution):void
titleproperty 
title:String

Since : CS5

the title for the new document ( default: Untitled )


Implementation
    public function get title():String
    public function set title(value:String):void
transparencyGridproperty 
transparencyGrid:DocumentTransparencyGrid

Since : CS5

the transparency grid for the new document ( default: DocumentTransparencyGrid.TransparencyGridNone )


Implementation
    public function get transparencyGrid():DocumentTransparencyGrid
    public function set transparencyGrid(value:DocumentTransparencyGrid):void
unitsproperty 
units:RulerUnits

Since : CS5

the units for the new document ( default: RulerUnits.Points )


Implementation
    public function get units():RulerUnits
    public function set units(value:RulerUnits):void
widthproperty 
width:Number

Since : CS5

the width for the new document ( default: 612.0 )


Implementation
    public function get width():Number
    public function set width(value:Number):void