ESRI.ArcGIS.ADF.Tasks
WidthSettings Property
See Also 
ESRI.ArcGIS.ADF.Tasks Namespace > PrintTask Class : WidthSettings Property




Settings for the Width drop down list that allows the user to choose the size of the printed map.

Syntax

Visual Basic (Declaration) 
<ResCategoryAttribute("PrintTask")>
<DesignerSerializationVisibilityAttribute()>
<ResDescriptionAttribute("Settings for the Map Size.")>
<NotifyParentPropertyAttribute(True)>
Public Property WidthSettings As WidthItemSettings
Visual Basic (Usage)Copy Code
Dim instance As PrintTask
Dim value As WidthItemSettings
 
instance.WidthSettings = value
 
value = instance.WidthSettings
C# 
[ResCategoryAttribute("PrintTask")]
[DesignerSerializationVisibilityAttribute()]
[ResDescriptionAttribute("Settings for the Map Size.")]
[NotifyParentPropertyAttribute(true)]
public WidthItemSettings WidthSettings {get; set;}

Remarks

A WidthItemSettings object stores properties for the drop-down list for map size that may display in the PrintTask dialog. The settings object stores these properties:

  • DisplayInDialog: whether to display the drop-down list for map width size in the end user's print dialog. If false, then the DefaultValue will be used when printing.
  • WidthList: a collection of WidthItem objects. Each WidthItem defines a width (size) option in the drop-down list. For example, the item may store a size of 10 cm with a name of "Medium".
  • DefaultValue: the default WidthItem in the WidthList. If DisplayInDialog is false, then this width size will always be used when printing.

The height of the printed map is sized proportionately based on the chosen width and the Map control used for printing.

See Also

© 2010 All Rights Reserved.