Objeto Font (PowerPoint)Font object (PowerPoint)
Representa formatação de caractere de texto ou um marcador.Represents character formatting for text or a bullet. O objeto Font é um membro das fontes coleção.The Font object is a member of the Fonts collection. Coleção Fonts contém todas as fontes usadas em uma apresentação.The Fonts collection contains all the fonts used in a presentation.
ExemploExample
Os exemplos a seguir descrevem como:The following examples describes how to do the following:
Retornar o objeto Font que representa os atributos de fonte de um marcador especificado, um intervalo especificado de texto ou todo o texto em um nível de estrutura de tópicos especificadoReturn the Font object that represents the font attributes of a specified bullet, a specified range of text, or all text at a specified outline level
Retornar um objeto Font da coleção de todas as fontes usadas na apresentaçãoReturn a Font object from the collection of all the fonts used in the presentation
Use a propriedade Fontpara retornar o objeto Font que representa os atributos de fonte de um marcador, intervalo de texto ou nível de estrutura de tópicos específico.Use the Fontproperty to return the Font object that represents the font attributes for a specific bullet, text range, or outline level. O exemplo a seguir define o texto do título no slide um e define as propriedades de fonte.The following example sets the title text on slide one and sets the font properties.
With ActivePresentation.Slides(1).Shapes.Title _
.TextFrame.TextRange
.Text = "Volcano Coffee"
With .Font
.Italic = True
.Name = "Palatino"
.Color.RGB = RGB(0, 0, 255)
End With
End With
Use fontes (index), onde index é o nome da fonte ou o número de índice, para retornar um único objeto Font .Use Fonts (index), where index is the font's name or index number, to return a single Font object. O exemplo a seguir verifica se a fonte um da apresentação ativa está incorporada à apresentação.The following example checks to see whether font one in the active presentation is embedded in the presentation.
If ActivePresentation.Fonts(1).Embedded = _
True Then MsgBox "Font 1 is embedded"
PropriedadesProperties
Confira tambémSee also
Referência de modelos de objeto do PowerPointPowerPoint Object Model Reference
Suporte e comentáriosSupport and feedback
Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação?Have questions or feedback about Office VBA or this documentation? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.