-
Notifications
You must be signed in to change notification settings - Fork 42
/
UIViewContentMode.xml
493 lines (493 loc) · 22.1 KB
/
UIViewContentMode.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
<Type Name="UIViewContentMode" FullName="UIKit.UIViewContentMode">
<TypeSignature Language="C#" Value="public enum UIViewContentMode" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed UIViewContentMode extends System.Enum" />
<TypeSignature Language="DocId" Value="T:UIKit.UIViewContentMode" />
<TypeSignature Language="F#" Value="type UIViewContentMode = " />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.Native</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>An enumeration indicating how the cached bitmap of a view must be rendered when the view's bounds change.</summary>
<remarks>
<para>
The contents of the <see cref="T:UIKit.UIView" /> are cached in a bitmap, the values in this enumeration determine what happens to a view when the bounds of that view change. With these you can control whether the bitmap is stretched or whether the view is redrawn.
</para>
<para>The following table shows the behavior as it works placing this {638, 475} image in a <see cref="T:UIKit.UIImageView" /> of size {280, 100}.</para>
<para>
<img href="~/CoreImage/_images/flower.png" alt="Photograph of a sunflower." />
</para>
<list type="table">
<listheader>
<term>Value</term>
<description>Behavior</description>
<description />
</listheader>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.Bottom" />
</term>
<description>Aligns the content to the bottom of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.Bottom.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.BottomLeft" />
</term>
<description>Aligns the content to the bottom left of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.BottomLeft.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.BottomLeft" />
</term>
<description>Aligns the content to the bottom left of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.BottomLeft.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.BottomLeft" />
</term>
<description>Aligns the content to the bottom left of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.BottomLeft.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.BottomLeft" />
</term>
<description>Aligns the content to the bottom left of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.BottomLeft.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.BottomLeft" />
</term>
<description>Aligns the content to the bottom left of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.BottomLeft.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.BottomRight" />
</term>
<description>Aligns the content to the bottom right of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.BottomRight.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.Center" />
</term>
<description>Center the content in the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.Center.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.Left" />
</term>
<description>Aligns the content to the left of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.Left.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.Redraw" />
</term>
<description>Forces a redraw when the <see cref="P:UIKit.UIView.Frame" /> of an object changes.</description>
<description>
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.Right" />
</term>
<description>Aligns the content to the right of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.Right.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.ScaleAspectFill" />
</term>
<description>Scales the contents to fill the new bounaries of the view, while preserving the aspect ratio. This means that the contents might be clipped.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.ScaleAspectFill.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.ScaleAspectFit" />
</term>
<description>Scales the contents so that everything is visible, while preserving the aspect ratio. Any areas that are not filled become transparent. (In the image, the <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=UIKit%20UIImage%20Background%20Color&scope=Xamarin" title="P:UIKit.UIImage.BackgroundColor">P:UIKit.UIImage.BackgroundColor</a></format> was set to black to emphasize the scaling behavior.)</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.ScaleAspectFit.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.ScaleToFill" />
</term>
<description>Scales the contents to fit the new bounds, this might distort the contents.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.ScaleToFill.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.Top" />
</term>
<description>Aligns the content to the top of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.Top.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.TopLeft" />
</term>
<description>Aligns the content to the top left of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.TopLeft.png" alt="Image layout for the specified content mode" />
</description>
</item>
<item>
<term>
<see cref="F:UIKit.UIViewContentMode.TopRight" />
</term>
<description>Aligns the content to the top right of the view.</description>
<description>
<img href="~/UIKit/_images/UIViewContentMode.TopRight.png" alt="Image layout for the specified content mode" />
</description>
</item>
</list>
</remarks>
</Docs>
<Members>
<Member MemberName="Bottom">
<MemberSignature Language="C#" Value="Bottom" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode Bottom = int64(6)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.Bottom" />
<MemberSignature Language="F#" Value="Bottom = 6" Usage="UIKit.UIViewContentMode.Bottom" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>6</MemberValue>
<Docs>
<summary>Aligns the content to the bottom of the view.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.Bottom.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="BottomLeft">
<MemberSignature Language="C#" Value="BottomLeft" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode BottomLeft = int64(11)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.BottomLeft" />
<MemberSignature Language="F#" Value="BottomLeft = 11" Usage="UIKit.UIViewContentMode.BottomLeft" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>11</MemberValue>
<Docs>
<summary>Aligns the content to the bottom left of the view.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.BottomLeft.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="BottomRight">
<MemberSignature Language="C#" Value="BottomRight" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode BottomRight = int64(12)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.BottomRight" />
<MemberSignature Language="F#" Value="BottomRight = 12" Usage="UIKit.UIViewContentMode.BottomRight" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>12</MemberValue>
<Docs>
<summary>Aligns the content to the bottom right side of the view.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.BottomRight.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Center">
<MemberSignature Language="C#" Value="Center" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode Center = int64(4)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.Center" />
<MemberSignature Language="F#" Value="Center = 4" Usage="UIKit.UIViewContentMode.Center" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>4</MemberValue>
<Docs>
<summary>Centers the contents in the view</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.Center.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Left">
<MemberSignature Language="C#" Value="Left" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode Left = int64(7)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.Left" />
<MemberSignature Language="F#" Value="Left = 7" Usage="UIKit.UIViewContentMode.Left" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>7</MemberValue>
<Docs>
<summary>Aligns the content to the left of the view.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.Left.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Redraw">
<MemberSignature Language="C#" Value="Redraw" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode Redraw = int64(3)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.Redraw" />
<MemberSignature Language="F#" Value="Redraw = 3" Usage="UIKit.UIViewContentMode.Redraw" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>This forces a redraw when the <see cref="P:UIKit.UIView.Frame" /> of an object changes.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.Redraw.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Right">
<MemberSignature Language="C#" Value="Right" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode Right = int64(8)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.Right" />
<MemberSignature Language="F#" Value="Right = 8" Usage="UIKit.UIViewContentMode.Right" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>8</MemberValue>
<Docs>
<summary>Aligns the content to the right of the view..</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.Right.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="ScaleAspectFill">
<MemberSignature Language="C#" Value="ScaleAspectFill" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode ScaleAspectFill = int64(2)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.ScaleAspectFill" />
<MemberSignature Language="F#" Value="ScaleAspectFill = 2" Usage="UIKit.UIViewContentMode.ScaleAspectFill" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>Scales the contents to fill the new bounaries of the view, while preserving the aspect ratio. This means that the contents might be clipped.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.ScaleAspectFill.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="ScaleAspectFit">
<MemberSignature Language="C#" Value="ScaleAspectFit" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode ScaleAspectFit = int64(1)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.ScaleAspectFit" />
<MemberSignature Language="F#" Value="ScaleAspectFit = 1" Usage="UIKit.UIViewContentMode.ScaleAspectFit" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>Scales the contents so that everything is visible, while preserving the aspect ration. Any areas that are not filled become transparent.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.ScaleAspectFit.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="ScaleToFill">
<MemberSignature Language="C#" Value="ScaleToFill" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode ScaleToFill = int64(0)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.ScaleToFill" />
<MemberSignature Language="F#" Value="ScaleToFill = 0" Usage="UIKit.UIViewContentMode.ScaleToFill" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>Scales the contents to fit the new bounds, this might distort the contents.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.ScaleToFill.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Top">
<MemberSignature Language="C#" Value="Top" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode Top = int64(5)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.Top" />
<MemberSignature Language="F#" Value="Top = 5" Usage="UIKit.UIViewContentMode.Top" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>5</MemberValue>
<Docs>
<summary>Aligns the content to the top of the view.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.Top.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="TopLeft">
<MemberSignature Language="C#" Value="TopLeft" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode TopLeft = int64(9)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.TopLeft" />
<MemberSignature Language="F#" Value="TopLeft = 9" Usage="UIKit.UIViewContentMode.TopLeft" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>9</MemberValue>
<Docs>
<summary>Aligns the content to the top left of the view.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.TopLeft.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="TopRight">
<MemberSignature Language="C#" Value="TopRight" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype UIKit.UIViewContentMode TopRight = int64(10)" />
<MemberSignature Language="DocId" Value="F:UIKit.UIViewContentMode.TopRight" />
<MemberSignature Language="F#" Value="TopRight = 10" Usage="UIKit.UIViewContentMode.TopRight" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIViewContentMode</ReturnType>
</ReturnValue>
<MemberValue>10</MemberValue>
<Docs>
<summary>Aligns the content to the top right of the view.</summary>
<remarks>
<para>
<img href="~/UIKit/_images/UIViewContentMode.TopRight.png" alt="Image layout for the specified content mode" />
</para>
</remarks>
</Docs>
</Member>
</Members>
</Type>