LinkTextBlock
Visão geral
LinkTextBlock é uma classe em Aspose.Words FOSS para Python. Herda de: Block.
Esta classe fornece 4 métodos para trabalhar com objetos LinkTextBlock em programas Python. Os métodos disponíveis incluem: __init__, add_child, get_parent. Todos os membros públicos estão acessíveis a qualquer aplicação Python após a instalação do pacote Aspose.Words FOSS para Python. Propriedades: block_level, children, definition_label, has_destination, is_first_child, is_image e mais 8.
Propriedades
| Nome | Tipo | Acesso | Descrição |
|---|---|---|---|
has_destination | bool | Leitura | Obtém se há destino. |
uri | `` | Leitura | Obtém o uri. |
title | `` | Leitura | Obtém o título. |
is_image | `` | Leitura | Obtém o is image. |
definition_label | `` | Leitura | Obtém o rótulo de definição. |
raw_text | `` | Leitura | Obtém o texto bruto. |
is_first_child | bool | Leitura | Obtém se é o primeiro filho. |
is_last_child | bool | Leitura | Obtém se é o último filho. |
next_sibling | Optional["Block"] | Leitura | Obtém o próximo irmão. |
previous_sibling | Optional["Block"] | Leitura | Obtém o irmão anterior. |
block_level | MarkdownBlockLevel | Leitura | Obtém o nível do bloco. |
type | `` | Leitura | Obtém o tipo. |
parent | Optional["Block"] | Leitura | Obtém o pai. |
children | list["Block"] | Leitura | Obtém os filhos. |
Métodos
| Assinatura | Descrição |
|---|---|
__init__(uri: Optional[str], title: str, is_image: bool, definition_label: Optional[str], raw_text: str) | Calls init(uri, title, is_image, definition_label, raw_text) nesta instância LinkTextBlock. |
__init__(block_type: BlockType) | Calls init(block_type) nesta instância de LinkTextBlock. |
add_child(child: "Block") → "Block" | Chama add_child(child) nesta instância de LinkTextBlock. |
get_parent() → Optional["Block"] | Percorra a cadeia de ancestrais e devolva o primeiro bloco cujo |
``type`` is one of *types*, or ``None`` if none matches. |