New Members and Constants (Publisher)

New Members

The following properties, methods, and events have been added to existing objects in Microsoft Publisher 2010.

Document

Properties

Description

AvailableBuildingBlocks

Returns the available members of the BuildingBlocks collection of the current document. Read-only.

PrintStyle

Read-only.

ViewBoundaries

Returns True if boundaries are visible in the specified publication. Read/write Boolean.

ViewGuides

Returns True if guides are visible in the specified publication. Read/write Boolean.

Font

Properties

Description

ContextualAlternates

Enables different shape choices for some characters depending on the context of the character and the design of the selected font. Read/write.

Ligature

Enables embellishments to the characters, often in the form of bigger and more flamboyant serifs. Read/write.

NumberStyle

Returns or sets a pbNumberStyles constant that represents the state of the NumberStyles property on the numerical characters in a text range. Read/write.

StrikeThrough

Returns or sets an MsoTriState constant that represents the state of the StrikeThrough property on the characters in a text range. Read/write.

StylisticAlternates

Allows you to select an alternate look for the characters you have selected, if the font designer has created these alternates. Read/write.

StylisticSets

Applies from 1 to 20 increasingly complex sets of typography styles to the selected font. Read/write.

Swash

Enables embellishments to the characters, often in the form of bigger and more flamboyant serifs. Read/write.

PictureFormat

Methods

Description

ClearCrop

Removes a picture shape from an image, and resets the crop region to the original extent of the image before cropping. Returns Nothing.

FillFrame

Fills the frame of a placeholder with the picture represented by the PictureFormat object. Returns Nothing.

FitFrame

Fits the picture represented by the PictureFormat object to the frame of the placeholder. Returns Nothing.

Remove

Removes the picture format from the publication. Returns Nothing.

ReplaceEx

Replaces the specified picture, optionally fitting the replacement picture to the placeholder frame or filling the frame. Returns Nothing.

Shapes

Properties

Description

CanvasArrangementType

A pbCanvasArrangementType constant that specifies the arrangement type of the canvas. Read/write.

CanvasesCount

A Long that specifies the number of canvases in the Shapes collection. Read-only.

Methods

Description

AddCatalogMergeFieldToCanvas

Adds a catalog merge field of the specified type to the canvas, Returns Nothing.

AddWordArt

Returns a Shape object that represents the WordArt to be added to the publication.

TextEffectFormat

Properties

Description

PresetWordArt

A pbPresetWordArt constant that indicates the type of preset WordArt associated with the specified object. Read/write.

New Constants

The following constants have been added to existing enumerations in Microsoft Publisher 2010.

Enumeration

New constants

PbCalendarType

pbCalendarTypeArabicUmalqura

PbDriverType

pbDriverTypeXPS

PbShapeType

pbBarCodePictureHolder

PbTextAutoFitType

pbTextAutoFitGrowToFit

PbWizardTag

  • pbWizardTagPictureCaption

  • pbWizardTagPictureCaptionPicture

  • pbWizardTagPictureCaptionText