API Reference
OdpHyperlink
An XML-backed ODP hyperlink. Targets are preserved and never fetched.
Inheritance
- Object
- OdpHyperlink
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method OdpHyperlink.AddText
- Method OdpHyperlink.TransformTextCase
- Property OdpInlineNode.Hyperlink
- Method OdpParagraph.AddHyperlink
- Method OdpRun.AddHyperlink
Methods
public OdpRun AddRun(String text = null) #OdpRunAppends a styled run inside this hyperlink.
Parameters
- text System.String = null
public OdpHyperlink AddText(String text) #OdpHyperlinkAppends display text after existing child nodes.
Parameters
- text System.String
public OdpHyperlink TransformTextCase(OfficeTextCase textCase, CultureInfo culture = null) #OdpHyperlinkChanges the hyperlink display text casing while preserving its target and text style.
Parameters
- textCase OfficeIMO.Drawing.OfficeTextCase
- culture System.Globalization.CultureInfo = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String Text { get; set; } #Decoded display text.
public IReadOnlyList<OdpInlineNode> InlineNodes { get; } #Ordered text and runs inside this hyperlink.
public String Href { get; set; } #Link target.
public String TargetFrameName { get; set; } #ODF target frame behavior, if authored.
public String ShowBehavior { get; set; } #Raw XLink show behavior, if authored.
public String StyleName { get; set; } #Referenced text style name.
public Nullable<Boolean> Bold { get; set; } #Explicit or inherited bold state.
public Nullable<Boolean> Italic { get; set; } #Explicit or inherited italic state.
public Nullable<Boolean> Underline { get; set; } #Explicit or inherited underline state.
public Nullable<OdfTextDecorationStyle> UnderlineStyle { get; set; } #Explicit or inherited native underline style.
public Nullable<OdfTextDecorationType> UnderlineType { get; set; } #Explicit or inherited native underline line count.
public Boolean UsesNonSolidUnderlineStyle { get; } #Whether the effective underline uses a non-solid ODF decoration style.
public Nullable<Boolean> StrikeThrough { get; set; } #Explicit or inherited strike-through state.
public Nullable<OdfTextDecorationStyle> LineThroughStyle { get; set; } #Explicit or inherited native line-through style.
public Nullable<OdfTextDecorationType> LineThroughType { get; set; } #Explicit or inherited native line-through line count.
public Boolean UsesNonSolidLineThroughStyle { get; } #Whether the effective line-through uses a non-solid ODF decoration style.
public Nullable<OdfLength> FontSize { get; set; } #Explicit or inherited font size.
public Nullable<OdfTextPosition> TextPosition { get; set; } #Explicit or inherited baseline placement.
public Nullable<OdfTextTransform> TextTransform { get; set; } #Explicit or inherited display-time case transformation.
public Nullable<Boolean> SmallCaps { get; set; } #Explicit or inherited small-cap display formatting.
public String FontFamily { get; set; } #Explicit or inherited font family.
public Nullable<OdfColor> Color { get; set; } #Explicit or inherited text color.
public Nullable<OdfColor> BackgroundColor { get; set; } #Explicit or inherited text background color.
public Boolean HasTextBackgroundOverride { get; } #Whether an inline style sets a text background, including transparent.