67
73
<AssemblyVersion>0.0.0.0</AssemblyVersion>
77
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
70
81
<Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
73
84
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
74
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
85
<summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
76
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When you invoke the constructor that takes the NSObjectFlag.Empty you taking advatnage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to you.</para>
77
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
78
<para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
79
<para>In general, if your constructors invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, you should instead chain to the proper constructor in your class. </para>
80
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
87
<para>This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:</para>
84
// The NSObjectFlag merely allocates the object and registers the
85
// C# class with the Objective-C runtime if necessary, but no actual
86
// initXxx method is invoked, that is done later in the constructor
88
// This is taken from MonoMac's source code:
90
[Export ("initWithFrame:")]
91
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
93
// Invoke the init method now.
94
var initWithFrame = new Selector ("initWithFrame:").Handle;
96
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
98
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
90
public class MyClass : BaseClass {
91
[Export ("initWithFoo:")]
92
public MyClass (string foo) : base (NSObjectFlag.Empty)
144
145
<remarks>To be added.</remarks>
148
<Member MemberName="AnnotationHitNotification">
149
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString AnnotationHitNotification { get; }" />
150
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString AnnotationHitNotification" />
151
<MemberType>Property</MemberType>
153
<AssemblyVersion>0.0.0.0</AssemblyVersion>
156
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
159
<summary>To be added.</summary>
160
<value>To be added.</value>
162
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
163
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveAnnotationHit" /> method which offers strongly typed access to the parameters of the notification.</para>
164
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
172
notification = PdfView.Notifications.ObserveAnnotationHit ((sender, args) => {
173
/* Access strongly typed args */
174
Console.WriteLine ("Notification: {0}", args.Notification);
176
Console.WriteLine ("AnnotationHit", args.AnnotationHit);
179
// To stop listening:
180
notification.Dispose ();
185
NSObject notification;
186
void Callback (object sender, AnnotationHit args)
188
// Access strongly typed args
189
Console.WriteLine ("Notification: {0}", args.Notification);
191
Console.WriteLine ("AnnotationHit", args.AnnotationHit);
196
notification = PdfView.Notifications.ObserveAnnotationHit (Callback);
201
notification.Dispose ();
204
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
208
NSNotificationCenter.DefaultCenter.AddObserver (
209
PdfView.AnnotationHitNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
213
void Callback (NSNotification notification)
215
Console.WriteLine ("Received a notification PdfView", notification);
220
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.AnnotationHitNotification, Callback);
147
227
<Member MemberName="AnnotationsChanged">
148
228
<MemberSignature Language="C#" Value="public virtual void AnnotationsChanged (MonoMac.PdfKit.PdfPage page);" />
149
229
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void AnnotationsChanged(class MonoMac.PdfKit.PdfPage page) cil managed" />
168
248
<remarks>To be added.</remarks>
251
<Member MemberName="AnnotationWillHitNotification">
252
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString AnnotationWillHitNotification { get; }" />
253
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString AnnotationWillHitNotification" />
254
<MemberType>Property</MemberType>
256
<AssemblyVersion>0.0.0.0</AssemblyVersion>
259
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
262
<summary>To be added.</summary>
263
<value>To be added.</value>
265
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
266
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveAnnotationWillHit" /> method which offers strongly typed access to the parameters of the notification.</para>
267
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
275
notification = PdfView.Notifications.ObserveAnnotationWillHit ((sender, args) => {
276
/* Access strongly typed args */
277
Console.WriteLine ("Notification: {0}", args.Notification);
280
// To stop listening:
281
notification.Dispose ();
286
NSObject notification;
287
void Callback (object sender, AnnotationWillHit args)
289
// Access strongly typed args
290
Console.WriteLine ("Notification: {0}", args.Notification);
295
notification = PdfView.Notifications.ObserveAnnotationWillHit (Callback);
300
notification.Dispose ();
303
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
307
NSNotificationCenter.DefaultCenter.AddObserver (
308
PdfView.AnnotationWillHitNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
312
void Callback (NSNotification notification)
314
Console.WriteLine ("Received a notification PdfView", notification);
319
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.AnnotationWillHitNotification, Callback);
171
326
<Member MemberName="AutoScales">
172
327
<MemberSignature Language="C#" Value="public virtual bool AutoScales { get; set; }" />
173
328
<MemberSignature Language="ILAsm" Value=".property instance bool AutoScales" />
384
539
<remarks>To be added.</remarks>
542
<Member MemberName="ChangedHistoryNotification">
543
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString ChangedHistoryNotification { get; }" />
544
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString ChangedHistoryNotification" />
545
<MemberType>Property</MemberType>
547
<AssemblyVersion>0.0.0.0</AssemblyVersion>
550
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
553
<summary>To be added.</summary>
554
<value>To be added.</value>
556
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
557
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveChangedHistory" /> method which offers strongly typed access to the parameters of the notification.</para>
558
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
566
notification = PdfView.Notifications.ObserveChangedHistory ((sender, args) => {
567
/* Access strongly typed args */
568
Console.WriteLine ("Notification: {0}", args.Notification);
571
// To stop listening:
572
notification.Dispose ();
577
NSObject notification;
578
void Callback (object sender, ChangedHistory args)
580
// Access strongly typed args
581
Console.WriteLine ("Notification: {0}", args.Notification);
586
notification = PdfView.Notifications.ObserveChangedHistory (Callback);
591
notification.Dispose ();
594
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
598
NSNotificationCenter.DefaultCenter.AddObserver (
599
PdfView.ChangedHistoryNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
603
void Callback (NSNotification notification)
605
Console.WriteLine ("Received a notification PdfView", notification);
610
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.ChangedHistoryNotification, Callback);
387
617
<Member MemberName="ClassHandle">
388
618
<MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
389
619
<MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
553
783
<remarks>To be added.</remarks>
786
<Member MemberName="CopyPermissionNotification">
787
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString CopyPermissionNotification { get; }" />
788
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString CopyPermissionNotification" />
789
<MemberType>Property</MemberType>
791
<AssemblyVersion>0.0.0.0</AssemblyVersion>
794
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
797
<summary>To be added.</summary>
798
<value>To be added.</value>
800
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
801
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveCopyPermission" /> method which offers strongly typed access to the parameters of the notification.</para>
802
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
810
notification = PdfView.Notifications.ObserveCopyPermission ((sender, args) => {
811
/* Access strongly typed args */
812
Console.WriteLine ("Notification: {0}", args.Notification);
815
// To stop listening:
816
notification.Dispose ();
821
NSObject notification;
822
void Callback (object sender, CopyPermission args)
824
// Access strongly typed args
825
Console.WriteLine ("Notification: {0}", args.Notification);
830
notification = PdfView.Notifications.ObserveCopyPermission (Callback);
835
notification.Dispose ();
838
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
842
NSNotificationCenter.DefaultCenter.AddObserver (
843
PdfView.CopyPermissionNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
847
void Callback (NSNotification notification)
849
Console.WriteLine ("Received a notification PdfView", notification);
854
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.CopyPermissionNotification, Callback);
556
861
<Member MemberName="CurrentDestination">
557
862
<MemberSignature Language="C#" Value="public virtual MonoMac.PdfKit.PdfDestination CurrentDestination { get; }" />
558
863
<MemberSignature Language="ILAsm" Value=".property instance class MonoMac.PdfKit.PdfDestination CurrentDestination" />
633
938
<summary>An instance of the MonoMac.PdfKit.PdfViewDelegate model class which acts as the class delegate.</summary>
634
<value>The instance of the MonoMac.PdfKit.PdfViewDelegate model class</value>
940
<para>The instance of the MonoMac.PdfKit.PdfViewDelegate model class</para>
941
<para tool="nullallowed">This value can be <see langword="null" />.</para>
636
944
<para>The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.</para>
637
945
<para>When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events</para>
663
971
<remarks>To be added.</remarks>
974
<Member MemberName="DisplayBoxChangedNotification">
975
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString DisplayBoxChangedNotification { get; }" />
976
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString DisplayBoxChangedNotification" />
977
<MemberType>Property</MemberType>
979
<AssemblyVersion>0.0.0.0</AssemblyVersion>
982
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
985
<summary>To be added.</summary>
986
<value>To be added.</value>
988
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
989
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveDisplayBoxChanged" /> method which offers strongly typed access to the parameters of the notification.</para>
990
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
998
notification = PdfView.Notifications.ObserveDisplayBoxChanged ((sender, args) => {
999
/* Access strongly typed args */
1000
Console.WriteLine ("Notification: {0}", args.Notification);
1003
// To stop listening:
1004
notification.Dispose ();
1009
NSObject notification;
1010
void Callback (object sender, DisplayBoxChanged args)
1012
// Access strongly typed args
1013
Console.WriteLine ("Notification: {0}", args.Notification);
1018
notification = PdfView.Notifications.ObserveDisplayBoxChanged (Callback);
1023
notification.Dispose ();
1026
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
1030
NSNotificationCenter.DefaultCenter.AddObserver (
1031
PdfView.DisplayBoxChangedNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
1035
void Callback (NSNotification notification)
1037
Console.WriteLine ("Received a notification PdfView", notification);
1042
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.DisplayBoxChangedNotification, Callback);
666
1049
<Member MemberName="DisplayMode">
667
1050
<MemberSignature Language="C#" Value="public virtual MonoMac.PdfKit.PdfDisplayMode DisplayMode { get; set; }" />
668
1051
<MemberSignature Language="ILAsm" Value=".property instance valuetype MonoMac.PdfKit.PdfDisplayMode DisplayMode" />
687
1070
<remarks>To be added.</remarks>
1073
<Member MemberName="DisplayModeChangedNotification">
1074
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString DisplayModeChangedNotification { get; }" />
1075
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString DisplayModeChangedNotification" />
1076
<MemberType>Property</MemberType>
1078
<AssemblyVersion>0.0.0.0</AssemblyVersion>
1081
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
1084
<summary>To be added.</summary>
1085
<value>To be added.</value>
1087
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
1088
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveDisplayModeChanged" /> method which offers strongly typed access to the parameters of the notification.</para>
1089
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
1097
notification = PdfView.Notifications.ObserveDisplayModeChanged ((sender, args) => {
1098
/* Access strongly typed args */
1099
Console.WriteLine ("Notification: {0}", args.Notification);
1102
// To stop listening:
1103
notification.Dispose ();
1108
NSObject notification;
1109
void Callback (object sender, DisplayModeChanged args)
1111
// Access strongly typed args
1112
Console.WriteLine ("Notification: {0}", args.Notification);
1117
notification = PdfView.Notifications.ObserveDisplayModeChanged (Callback);
1122
notification.Dispose ();
1125
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
1129
NSNotificationCenter.DefaultCenter.AddObserver (
1130
PdfView.DisplayModeChangedNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
1134
void Callback (NSNotification notification)
1136
Console.WriteLine ("Received a notification PdfView", notification);
1141
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.DisplayModeChangedNotification, Callback);
690
1148
<Member MemberName="DisplaysAsBook">
691
1149
<MemberSignature Language="C#" Value="public virtual bool DisplaysAsBook { get; set; }" />
692
1150
<MemberSignature Language="ILAsm" Value=".property instance bool DisplaysAsBook" />
752
1210
<param name="disposing">
753
1211
<para>If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources; If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</para>
755
<summary>Releases the resourced used by the PdfView object.</summary>
1213
<summary>Releases the resources used by the PdfView object.</summary>
757
1215
<para>This Dispose method releases the resources used by the PdfView class.</para>
758
1216
<para>This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposting <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
785
1243
<remarks>To be added.</remarks>
1246
<Member MemberName="DocumentChangedNotification">
1247
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString DocumentChangedNotification { get; }" />
1248
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString DocumentChangedNotification" />
1249
<MemberType>Property</MemberType>
1251
<AssemblyVersion>0.0.0.0</AssemblyVersion>
1254
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
1257
<summary>To be added.</summary>
1258
<value>To be added.</value>
1260
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
1261
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveDocumentChanged" /> method which offers strongly typed access to the parameters of the notification.</para>
1262
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
1270
notification = PdfView.Notifications.ObserveDocumentChanged ((sender, args) => {
1271
/* Access strongly typed args */
1272
Console.WriteLine ("Notification: {0}", args.Notification);
1275
// To stop listening:
1276
notification.Dispose ();
1281
NSObject notification;
1282
void Callback (object sender, DocumentChanged args)
1284
// Access strongly typed args
1285
Console.WriteLine ("Notification: {0}", args.Notification);
1290
notification = PdfView.Notifications.ObserveDocumentChanged (Callback);
1295
notification.Dispose ();
1298
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
1302
NSNotificationCenter.DefaultCenter.AddObserver (
1303
PdfView.DocumentChangedNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
1307
void Callback (NSNotification notification)
1309
Console.WriteLine ("Received a notification PdfView", notification);
1314
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.DocumentChangedNotification, Callback);
788
1321
<Member MemberName="DocumentView">
789
1322
<MemberSignature Language="C#" Value="public virtual MonoMac.AppKit.NSView DocumentView { get; }" />
790
1323
<MemberSignature Language="ILAsm" Value=".property instance class MonoMac.AppKit.NSView DocumentView" />
1256
1789
<remarks>If you assign a value to this event, this will reset the value for the WeakDelegate property to an internal handler that maps delegates to events.</remarks>
1792
<Member MemberName="PageChangedNotification">
1793
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString PageChangedNotification { get; }" />
1794
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString PageChangedNotification" />
1795
<MemberType>Property</MemberType>
1797
<AssemblyVersion>0.0.0.0</AssemblyVersion>
1800
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
1803
<summary>To be added.</summary>
1804
<value>To be added.</value>
1806
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
1807
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObservePageChanged" /> method which offers strongly typed access to the parameters of the notification.</para>
1808
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
1816
notification = PdfView.Notifications.ObservePageChanged ((sender, args) => {
1817
/* Access strongly typed args */
1818
Console.WriteLine ("Notification: {0}", args.Notification);
1821
// To stop listening:
1822
notification.Dispose ();
1827
NSObject notification;
1828
void Callback (object sender, PageChanged args)
1830
// Access strongly typed args
1831
Console.WriteLine ("Notification: {0}", args.Notification);
1836
notification = PdfView.Notifications.ObservePageChanged (Callback);
1841
notification.Dispose ();
1844
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
1848
NSNotificationCenter.DefaultCenter.AddObserver (
1849
PdfView.PageChangedNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
1853
void Callback (NSNotification notification)
1855
Console.WriteLine ("Received a notification PdfView", notification);
1860
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.PageChangedNotification, Callback);
1259
1867
<Member MemberName="PerformAction">
1260
1868
<MemberSignature Language="C#" Value="public virtual void PerformAction (MonoMac.PdfKit.PdfAction action);" />
1261
1869
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void PerformAction(class MonoMac.PdfKit.PdfAction action) cil managed" />
1404
2012
<remarks>To be added.</remarks>
2015
<Member MemberName="ScaleChangedNotification">
2016
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString ScaleChangedNotification { get; }" />
2017
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString ScaleChangedNotification" />
2018
<MemberType>Property</MemberType>
2020
<AssemblyVersion>0.0.0.0</AssemblyVersion>
2023
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
2026
<summary>To be added.</summary>
2027
<value>To be added.</value>
2029
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
2030
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveScaleChanged" /> method which offers strongly typed access to the parameters of the notification.</para>
2031
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
2039
notification = PdfView.Notifications.ObserveScaleChanged ((sender, args) => {
2040
/* Access strongly typed args */
2041
Console.WriteLine ("Notification: {0}", args.Notification);
2044
// To stop listening:
2045
notification.Dispose ();
2050
NSObject notification;
2051
void Callback (object sender, ScaleChanged args)
2053
// Access strongly typed args
2054
Console.WriteLine ("Notification: {0}", args.Notification);
2059
notification = PdfView.Notifications.ObserveScaleChanged (Callback);
2064
notification.Dispose ();
2067
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
2071
NSNotificationCenter.DefaultCenter.AddObserver (
2072
PdfView.ScaleChangedNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
2076
void Callback (NSNotification notification)
2078
Console.WriteLine ("Received a notification PdfView", notification);
2083
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.ScaleChangedNotification, Callback);
1407
2090
<Member MemberName="ScaleFactor">
1408
2091
<MemberSignature Language="C#" Value="public virtual float ScaleFactor { get; set; }" />
1409
2092
<MemberSignature Language="ILAsm" Value=".property instance float32 ScaleFactor" />
1476
2159
<remarks>To be added.</remarks>
2162
<Member MemberName="SelectionChangedNotification">
2163
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString SelectionChangedNotification { get; }" />
2164
<MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString SelectionChangedNotification" />
2165
<MemberType>Property</MemberType>
2167
<AssemblyVersion>0.0.0.0</AssemblyVersion>
2170
<ReturnType>MonoMac.Foundation.NSString</ReturnType>
2173
<summary>To be added.</summary>
2174
<value>To be added.</value>
2176
<para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
2177
<para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:PdfView+Notifications" />.<see cref="M:PdfView+Notifications.ObserveSelectionChanged" /> method which offers strongly typed access to the parameters of the notification.</para>
2178
<para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
2186
notification = PdfView.Notifications.ObserveSelectionChanged ((sender, args) => {
2187
/* Access strongly typed args */
2188
Console.WriteLine ("Notification: {0}", args.Notification);
2191
// To stop listening:
2192
notification.Dispose ();
2197
NSObject notification;
2198
void Callback (object sender, SelectionChanged args)
2200
// Access strongly typed args
2201
Console.WriteLine ("Notification: {0}", args.Notification);
2206
notification = PdfView.Notifications.ObserveSelectionChanged (Callback);
2211
notification.Dispose ();
2214
<para>The following example shows how to use the notification with the DefaultCenter API:</para>
2218
NSNotificationCenter.DefaultCenter.AddObserver (
2219
PdfView.SelectionChangedNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }
2223
void Callback (NSNotification notification)
2225
Console.WriteLine ("Received a notification PdfView", notification);
2230
NSNotificationCenter.DefaultCenter.AddObserver (PdfView.SelectionChangedNotification, Callback);
1479
2237
<Member MemberName="SetCurrentSelection">
1480
2238
<MemberSignature Language="C#" Value="public virtual void SetCurrentSelection (MonoMac.PdfKit.PdfSelection selection, bool animate);" />
1481
2239
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetCurrentSelection(class MonoMac.PdfKit.PdfSelection selection, bool animate) cil managed" />
1657
2415
<summary>An object that can respond to the delegate protocol for this type</summary>
1658
<value>The instance that will respond to events and data requests.</value>
2417
<para>The instance that will respond to events and data requests.</para>
2418
<para tool="nullallowed">This value can be <see langword="null" />.</para>
1660
2421
<para>The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.</para>
1661
2422
<para>When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events</para>