Field styleField = list.Fields.AddFieldAsXml("
FieldMultiLineText fieldMultiLineText = context.CastTo
fieldMultiLineText.RichText = true;
fieldMultiLineText.AllowHyperlink = true;
fieldMultiLineText.UpdateAndPushChanges(true);
list.Update();
context.ExecuteQuery();
Create Multiline Text with ich text option
Field styleField = list.Fields.AddFieldAsXml("
FieldMultiLineText fieldMultiLineText = context.CastTo
fieldMultiLineText.RichText = true;
fieldMultiLineText.AllowHyperlink = true;
fieldMultiLineText.UpdateAndPushChanges(true);
list.Update();
context.ExecuteQuery();
created Enhanced rich text column and use the SchemaXML to generate the new field:
Field rtfField = list.Fields.AddFieldAsXml("
rtfField.UpdateAndPushChanges(true);list.Update();
context.ExecuteQuery();
RestrictedMode=\"TRUE\" RichText=\"TRUE\" RichTextMode=\"FullHtml\"
No comments:
Post a Comment