ISharedString Interface
Packages > @fluidframework/sequence > ISharedString
Fluid object interface describing access methods on a SharedString
Signature:
export interface ISharedString extends SharedSegmentSequence<SharedStringSegment>, IProvideSharedString
Extends: SharedSegmentSequence<SharedStringSegment>, IProvideSharedString
Methods
Method | Description |
---|---|
insertMarker(pos, refType, props) | |
insertText(pos, text, props) | |
posFromRelativePos(relativePos) |
Methods
insertMarker
Signature:
insertMarker(pos: number, refType: MergeTree.ReferenceType, props?: MergeTree.PropertySet): any;
Parameters
Parameter | Type | Description |
---|---|---|
pos | number | |
refType | MergeTree.ReferenceType | |
props | MergeTree.PropertySet |
Returns:
any
insertText
Signature:
insertText(pos: number, text: string, props?: MergeTree.PropertySet): any;
Parameters
Parameter | Type | Description |
---|---|---|
pos | number | |
text | string | |
props | MergeTree.PropertySet |
Returns:
any
posFromRelativePos
Signature:
posFromRelativePos(relativePos: MergeTree.IRelativePosition): any;
Parameters
Parameter | Type | Description |
---|---|---|
relativePos | MergeTree.IRelativePosition |
Returns:
any