Word XP: Método AddShape - Cap. 01
- Adiciona uma AutoForma ao documento.
Sintaxe
- expressão.AddShape(Type, Left, Top, Width, Height, Anchor)
- expressão: Uma expressão que retorna um objeto Shape.
- Type: O tipo da forma que será criada.
- Left: A posição, medida em pontos, da borda esquerda da
AutoForma.
- Top: A posição, medida em pontos, da borda superior da
AutoForma.
- Width: A largura, medida em pontos, da AutoForma.
- Height: A altura, medida em pontos, da AutoForma.
- Anchor: Parâmetro opcional. Um objeto Range que
representa o texto ao qual a AutoForma está acoplada.
Se Anchor for especificado, a âncora será posicionada no início do
primeiro parágrafo do intervalo de ancoragem.
Se esse argumento for omitido, o intervalo de ancoragem será selecionado automaticamente e
a AutoForma será posicionada em relação às bordas superior e esquerda da
página.
Tipos de Autoforma.
- O parâmetro Type pode ser representado por uma
das seguintes constantes: msoShapeFlowchartDirectAccessStorage, msoShapeFlowchartDocument,
msoShapeFlowchartInternalStorage, msoShapeFlowchartManualInput, msoShapeFlowchartMerge,
msoShapeFlowchartOffpageConnector, msoShapeFlowchartPredefinedProcess,
msoShapeFlowchartProcess, msoShapeLeftBracket, msoShapeFlowchartConnector,
msoShapeFlowchartData, msoShapeFlowchartDecision, msoShapeFlowchartDelay,
msoShapeFlowchartDisplay, msoShapeFlowchartExtract, msoShapeFlowchartMagneticDisk,
msoShapeFlowchartManualOperation, msoShapeFlowchartMultidocument, msoShapeFlowchartOr,
msoShapeFlowchartPreparation, msoShapeFlowchartPunchedTape, msoShapeFlowchartSequentialAccessStorage,
msoShapeFlowchartSort, msoShapeFlowchartStoredData, msoShapeFlowchartSummingJunction,
msoShapeFlowchartTerminator, msoShapeFoldedCorner, msoShapeHeart,
msoShapeHexagon, msoShapeHorizontalScroll, msoShapeIsoscelesTriangle, msoShapeLeftArrow,
msoShapeLeftArrowCallout, msoShapeLeftBrace, msoShapeLeftRightArrow, msoShapeLeftRightArrowCallout,
msoShapeLeftRightUpArrow, msoShapeLeftUpArrow, msoShapeLightningBolt,
msoShapeLineCallout1, msoShapeLineCallout1AccentBar, msoShapeLineCallout1BorderandAccentBar,
msoShapeLineCallout1NoBorder, msoShapeLineCallout2, msoShapeLineCallout2AccentBar,
msoShapeLineCallout2BorderandAccentBar, msoShapeLineCallout2NoBorder,
msoShapeLineCallout3, msoShapeLineCallout3AccentBar, msoShapeLineCallout3BorderandAccentBar,
msoShapeLineCallout3NoBorder, msoShapeLineCallout4, msoShapeLineCallout4AccentBar,
msoShapeLineCallout4BorderandAccentBar, msoShapeLineCallout4NoBorder, msoShapeMixed,
msoShapeMoon, msoShapeNoSymbol, msoShapeNotchedRightArrow, msoShapeNotPrimitive,
msoShapeOctagon, msoShapeOval, msoShapeOvalCallout, msoShapeParallelogram,
msoShapePentagon, msoShapePlaque, msoShapeQuadArrow, msoShapeQuadArrowCallout,
msoShapeRectangle, msoShapeRectangularCallout, msoShapeRegularPentagon,
msoShapeRightArrow, msoShapeRightArrowCallout, msoShapeRightBrace,
msoShapeRightBracket, msoShapeRightTriangle, msoShapeRoundedRectangle,
msoShapeRoundedRectangularCallout, msoShapeSmileyFace, msoShapeStripedRightArrow,
msoShapeSun, msoShapeTrapezoid, msoShapeUpArrow, msoShapeUpArrowCallout,
msoShapeUpDownArrow, msoShapeUpDownArrowCallout, msoShapeUpRibbon,
msoShapeUTurnArrow, msoShapeVerticalScroll, msoShapeWave, msoShape16pointStar,
msoShape24pointStar, msoShape32pointStar, msoShape4pointStar, msoShape5pointStar,
msoShape8pointStar, msoShapeActionButtonBackorPrevious, msoShapeActionButtonBeginning,
msoShapeActionButtonCustom, msoShapeActionButtonDocument, msoShapeActionButtonEnd,
msoShapeActionButtonForwardorNext, msoShapeActionButtonHelp, msoShapeActionButtonHome,
msoShapeActionButtonInformation, msoShapeActionButtonMovie, msoShapeActionButtonReturn,
msoShapeActionButtonSound, msoShapeArc, msoShapeBalloon, msoShapeBentArrow,
msoShapeBentUpArrow, msoShapeBevel, msoShapeBlockArc, msoShapeCan, msoShapeChevron,
msoShapeCircularArrow, msoShapeCloudCallout, msoShapeCross, msoShapeCube,
msoShapeCurvedDownArrow, msoShapeCurvedDownRibbon, msoShapeCurvedLeftArrow,
msoShapeCurvedRightArrow, msoShapeCurvedUpArrow, msoShapeCurvedUpRibbon,
msoShapeDiamond, msoShapeDonut, msoShapeDoubleBrace, msoShapeDoubleBracket,
msoShapeDoubleWave, msoShapeDownArrow, msoShapeDownArrowCallout, msoShapeDownRibbon,
msoShapeExplosion1, msoShapeExplosion2, msoShapeFlowchartAlternateProcess,
msoShapeFlowchartCard, msoShapeFlowchartCollate.
Exemplos.
Parcerias RicardoHorta.Net
RicardoHorta.Net
Parcerias RicardoHorta.Net
24/06/2008 - 11:40 - www.ricardo.horta.nom.br - Direitos adquiridos - Autor: Ricardo Horta