• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Ink

Represents an ink annotation on a slide. Provides a rich object model with Traces and Brush for programmatic read access, while preserving the raw InkML XmlContent for round-trip fidelity.

Maps to the OOXML p14:ink element and its associated InkML part (namespace http://www.w3.org/2003/InkML).

Inheritance
object
Ink
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public sealed class Ink

Properties

Brush

Gets the brush settings for this ink annotation. Maps to InkML <brushProperty> elements.

The brush is lazily parsed from XmlContent on first access. Modifications to the brush are reflected in XmlContent on the next call to RebuildXmlContent().

Declaration
public InkBrush Brush { get; }
Property Value
Type Description
InkBrush

EffectName

Gets or sets the ink effect name. This is a convenience property that reads from and writes to the InkML brushProperty with name="inkEffects".

The setter modifies XmlContent in place to preserve the original InkML structure. It also updates Brush if the model has been parsed.

Declaration
public string EffectName { get; set; }
Property Value
Type Description
string

HasTraces

Gets whether this ink annotation has any traces.

Declaration
public bool HasTraces { get; }
Property Value
Type Description
bool

Traces

Gets the collection of ink traces (strokes). Each trace is a continuous stroke with an ordered list of points. Maps to InkML <trace> elements.

The collection is lazily parsed from XmlContent on first access. Modifications to the collection are reflected in XmlContent on the next call to RebuildXmlContent().

Declaration
public InkTraceCollection Traces { get; }
Property Value
Type Description
InkTraceCollection

XmlContent

Gets or sets the raw InkML XML content. When set, the rich model (Traces, Brush) is re-parsed on next access.

Declaration
public string XmlContent { get; set; }
Property Value
Type Description
string

Methods

RebuildXmlContent()

Regenerates XmlContent from the rich model (Traces and Brush). Call this after modifying the rich model to ensure XmlContent reflects the changes for save/roundtrip.

Declaration
public void RebuildXmlContent()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX