com.aspose.slides
Class Link

java.lang.Object
  extended by com.aspose.slides.Link

public final class Link
extends java.lang.Object

Represents a link in a text.


Method Summary
 int getActionType()
           Returns action type for a link.
 int getBegin()
           Returns or sets begin of a link in a text.
 int getEnd()
           Returns or sets end of a link in a text.
 java.lang.String getExternalHyperlink()
           Returns string which is an external hyperlink or null if type of link is not ExternalHyperlink.
 int getInternalHyperlink()
           Returns Id of a slide for internal hyperlink or -1 if type of link is not InternalHyperlink.
 int getJumpType()
           Returns jump type for a link if ActionType is JumpAction.
 int getPageNumber()
           Returns SlidePosition of a slide for internal hyperlink or -1 if type of a link is not InternalHyperlink.
 void setBegin(int value)
           
 void setEnd(int value)
           
 void setExternalHyperlink(java.lang.String hyperlink)
           Sets link destination to the custom url and changes action type to HyperlinkAction.
 void setInternalHyperlink(long slideId)
           Sets link destination to a slide inside presentation and changes action type to HyperlinkAction.
 void setInternalHyperlink(Slide slide)
           Sets link destination to a slide inside presentation and changes action type to HyperlinkAction.
 void setJump(int jumpType)
           Sets jump destination and changes action type to JumpAction.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBegin

public int getBegin()

Returns or sets begin of a link in a text. Read/write int.


setBegin

public void setBegin(int value)

getEnd

public int getEnd()

Returns or sets end of a link in a text. Read/write int.


setEnd

public void setEnd(int value)

getActionType

public int getActionType()

Returns action type for a link. Read-only LinkActionType.


getJumpType

public int getJumpType()

Returns jump type for a link if ActionType is JumpAction. Read-only LinkJumpType.


setJump

public void setJump(int jumpType)

Sets jump destination and changes action type to JumpAction.


getInternalHyperlink

public int getInternalHyperlink()

Returns Id of a slide for internal hyperlink or -1 if type of link is not InternalHyperlink. Read-only int.


getPageNumber

public int getPageNumber()

Returns SlidePosition of a slide for internal hyperlink or -1 if type of a link is not InternalHyperlink. Read-only int.


getExternalHyperlink

public java.lang.String getExternalHyperlink()

Returns string which is an external hyperlink or null if type of link is not ExternalHyperlink. Read-only string.


setInternalHyperlink

public void setInternalHyperlink(long slideId)

Sets link destination to a slide inside presentation and changes action type to HyperlinkAction.

Parameters:
slideId - Id of a slide

setInternalHyperlink

public void setInternalHyperlink(Slide slide)

Sets link destination to a slide inside presentation and changes action type to HyperlinkAction.

Parameters:
slide - Slide object

setExternalHyperlink

public void setExternalHyperlink(java.lang.String hyperlink)

Sets link destination to the custom url and changes action type to HyperlinkAction.

Parameters:
hyperlink -