SourceLink class

Office 2013 and later

Defines the SourceLink Class. When the object is serialized out as xml, its qualified name is msink:sourceLink.

Namespace:  DocumentFormat.OpenXml.Office2010.Ink
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class SourceLink : ContextLinkType

2.5.46 CT_CtxLink

Target namespace:

Referenced by: CT_CtxNode

An element of this type defines a semantic relationship from one Ink context node to another.


direction: An ST_Dir attribute that specifies the direction of the semantic link: to, from, or with. The "to" or "from" directions apply to ink that represent connectors or arrows, whereas "with" implies no direction, such as an underline on a word.

ref: An ST_Ref attribute that specifies the identifier of the other context node or shape being linked to, from, or with this context node. If it is an xsd:int, it MUST reference a shape identifier elsewhere in the drawing. If it is an ST_Guid, it MUST reference another context node in the document.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_CtxLink">

<xsd:attribute name="direction" type="ST_Dir"/>

<xsd:attribute name="ref" type="ST_Ref"/>


See section 5.7 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.