Represent a note
Namespace:
IpernityNET.IpernityObjectsAssembly: IpernityNET (in IpernityNET.dll) Version: 0.3.1.0 (0.3.1.0)
Syntax
C# |
---|
public class Note : IpernityObject |
Visual Basic (Declaration) |
---|
Public Class Note _ Inherits IpernityObject |
Visual C++ |
---|
public ref class Note : public IpernityObject |
Examples
CopyC#
static void Main(string[] args) { Ipernity ipernity = new Ipernity("apiKey", "apiSecret"); ipernity.AlwaysSign = true; //Create a new document and configure it Document document = new Document(123456); ipernity.ConfigureIpernityObject(document); try { // get notes from the document document.Get(new ExtraInformation[] {ExtraInformation.Note}); if(document.Notes.Count > 0) { // get the first note Note note = document.Notes.First().Value); // edit the note note.Edit("New content", 50, 50, 100, 150); // delete the note note.Delete(); } } catch (IpernityException ex) { Console.WriteLine("Ipernity returned an error : {0}", ex.Message); } }
Inheritance Hierarchy
System..::.Object
IpernityNET.IpernityObjects..::.IpernityObject
IpernityNET.IpernityObjects..::.Note
IpernityNET.IpernityObjects..::.IpernityObject
IpernityNET.IpernityObjects..::.Note