Mac Guides | Samples

MonoMac.AppKit.NSView Class

See Also: NSView

Syntax

[MonoMac.Foundation.Register("NSView", true)]
public class NSView : NSResponder

Requirements

Namespace: MonoMac.AppKit
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.AppKit.NSView are listed below.

See Also: NSResponder

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
Initializes the NSView with the specified frame.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AcceptsTouchEventsBoolean.
[read-only]
AlignmentRectInsetsNSEdgeInsets.
AlphaValueSingle.
AnimationsNSDictionary.
[read-only]
AnimatorNSObject.
AutoresizesSubviewsBoolean.
AutoresizingMaskNSViewResizingMask.
BackgroundFiltersCIFilter[].
[read-only]
BaselineOffsetFromBottomSingle.
BoundsRectangleF.
BoundsRotationSingle.
[read-only]
CanBecomeKeyViewBoolean.
CanDrawConcurrentlyBoolean.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
CompositingFilterCIFilter.
[read-only]
ConstraintsNSLayoutConstraint[].
ContentFiltersCIFilter[].
[read-only]
static
DefaultFocusRingTypeNSFocusRingType.
[read-only]
EnclosingScrollViewNSScrollView.
[read-only]
FittingSizeSizeF.
[read-only]
FocusRingMaskBoundsRectangleF.
FocusRingTypeNSFocusRingType.
FrameRectangleF.
FrameCenterRotationSingle.
FrameRotationSingle.
[read-only]
HasAmbiguousLayoutBoolean.
[read-only]
HeightAdjustLimitSingle.
HiddenBoolean.
IdentifierString.
[read-only]
InLiveResizeBoolean.
[read-only]
InputContextNSTextInputContext.
[read-only]
IntrinsicContentSizeSizeF.
[read-only]
IsFlippedBoolean.
[read-only]
IsHiddenOrHasHiddenAncestorBoolean.
[read-only]
IsInFullscreenModeBoolean.
[read-only]
IsOpaqueBoolean.
[read-only]
IsRotatedFromBaseBoolean.
[read-only]
IsRotatedOrScaledFromBaseBoolean.
LayerCALayer.
LayerContentsPlacementNSViewLayerContentsPlacement.
LayerContentsRedrawPolicyNSViewLayerContentsRedrawPolicy.
[read-only]
MouseDownCanMoveWindowBoolean.
NeedsDisplayBoolean.
NeedsLayoutBoolean.
[read-only]
NeedsPanelToBecomeKeyBoolean.
NeedsUpdateConstraintsBoolean.
NextKeyViewNSView.
[read-only]
NextValidKeyViewNSView.
[read-only]
static
NSFullScreenModeAllScreensNSString. Represents the value associated with the constant NSFullScreenModeAllScreens
[read-only]
static
NSFullScreenModeApplicationPresentationOptionsNSString. Represents the value associated with the constant NSFullScreenModeApplicationPresentationOptions
[read-only]
static
NSFullScreenModeSettingNSString. Represents the value associated with the constant NSFullScreenModeSetting
[read-only]
static
NSFullScreenModeWindowLevelNSString. Represents the value associated with the constant NSFullScreenModeWindowLevel
[read-only]
static
NSViewBoundsDidChangeNotificationNSString. Notification constant for NSViewBoundsDidChange
[read-only]
static
NSViewDidUpdateTrackingAreasNotificationNSString. Notification constant for NSViewDidUpdateTrackingAreas
[read-only]
static
NSViewFocusDidChangeNotificationNSString. Notification constant for NSViewFocusDidChange
[read-only]
static
NSViewFrameDidChangeNotificationNSString. Notification constant for NSViewFrameDidChange
[read-only]
static
NSViewGlobalFrameDidChangeNotificationNSString. Notification constant for NSViewGlobalFrameDidChange
[read-only]
OpaqueAncestorNSView.
[read-only]
PageFooterNSAttributedString.
[read-only]
PageHeaderNSAttributedString.
PostsBoundsChangedNotificationsBoolean.
PostsFrameChangedNotificationsBoolean.
[read-only]
PreservesContentDuringLiveResizeBoolean.
[read-only]
PreviousKeyViewNSView.
[read-only]
PreviousValidKeyViewNSView.
[read-only]
PrintJobTitleString.
[read-only]
RectPreservedDuringLiveResizeRectangleF.
ShadowNSShadow.
[read-only]
ShouldDrawColorBoolean.
SubviewsNSView[].
[read-only]
SuperviewNSView.
[read-only]
TagInt32.
ToolTipString.
TranslatesAutoresizingMaskIntoConstraintsBoolean.
[read-only]
WantsDefaultClippingBoolean.
WantsLayerBoolean.
[read-only]
WantsPeriodicDraggingUpdatesBoolean.
WantsRestingTouchesBoolean.
[read-only]
WidthAdjustLimitSingle.
[read-only]
WindowNSWindow.

Public Methods

AcceptsFirstMouse(NSEvent) : Boolean
AddConstraint(NSLayoutConstraint)
AddConstraints(NSLayoutConstraint[])
AddCursorRect(RectangleF, NSCursor)
AddSubview(NSView)
AddSubview(NSView, NSWindowOrderingMode, NSView)
AddToolTip(RectangleF, NSObject, IntPtr) : Int32
AddTrackingArea(NSTrackingArea)
AddTrackingRect(RectangleF, NSObject, IntPtr, Boolean) : Int32
AdjustPageHeightNew(Single, Single, Single, Single)
AdjustPageWidthNew(Single, Single, Single, Single)
AdjustScroll(RectangleF) : RectangleF
AllocateGState()
AncestorSharedWithView(NSView) : NSView
AnimationFor(NSString) : NSObject
Autoscroll(NSEvent) : Boolean
BackingAlignedRect(RectangleF, NSAlignmentOptions) : RectangleF
BeginDraggingSession(NSDraggingItem[], NSEvent, NSDraggingSource) : NSDraggingSession
BitmapImageRepForCachingDisplayInRect(RectangleF) : NSBitmapImageRep
CacheDisplayInRecttoBitmapImageRep(RectangleF, NSBitmapImageRep)
CanDraw() : Boolean
CenterScanRect(RectangleF) : RectangleF
ConcludeDragOperation(NSDraggingInfo)
ConvertPointFromBacking(PointF) : PointF
ConvertPointFromBase(PointF) : PointF
ConvertPointFromLayer(PointF) : PointF
ConvertPointFromView(PointF, NSView) : PointF
ConvertPointToBacking(PointF) : PointF
ConvertPointToBase(PointF) : PointF
ConvertPointToLayer(PointF) : PointF
ConvertPointToView(PointF, NSView) : PointF
ConvertRectFromBacking(RectangleF) : RectangleF
ConvertRectFromBase(RectangleF) : RectangleF
ConvertRectFromLayer(RectangleF) : RectangleF
ConvertRectFromView(RectangleF, NSView) : RectangleF
ConvertRectToBacking(RectangleF) : RectangleF
ConvertRectToBase(RectangleF) : RectangleF
ConvertRectToLayer(RectangleF) : RectangleF
ConvertRectToView(RectangleF, NSView) : RectangleF
ConvertSizeFromBacking(SizeF) : SizeF
ConvertSizeFromBase(SizeF) : SizeF
ConvertSizeFromLayer(SizeF) : SizeF
ConvertSizeFromView(SizeF, NSView) : SizeF
ConvertSizeToBacking(SizeF) : SizeF
ConvertSizeToBase(SizeF) : SizeF
ConvertSizeToLayer(SizeF) : SizeF
ConvertSizeToView(SizeF, NSView) : SizeF
DataWithEpsInsideRect(RectangleF) : NSData
DataWithPdfInsideRect(RectangleF) : NSData
static
DefaultAnimationFor(NSString) : NSObject
static
DefaultMenu() : NSMenu
DidAddSubview(NSView)
DiscardCursorRects()
Display()
DisplayIfNeeded()
DisplayIfNeededIgnoringOpacity()
DisplayIfNeededInRect(RectangleF)
DisplayIfNeededInRectIgnoringOpacity(RectangleF)
DisplayRect(RectangleF)
DisplayRectIgnoringOpacity(RectangleF)
DisplayRectIgnoringOpacityinContext(RectangleF, NSGraphicsContext)
DragFile(String, RectangleF, Boolean, NSEvent) : Boolean
DraggingEnded(NSDraggingInfo)
DraggingEntered(NSDraggingInfo) : NSDragOperation
DraggingExited(NSDraggingInfo)
DraggingUpdated(NSDraggingInfo) : NSDragOperation
DragImage(NSImage, PointF, SizeF, NSEvent, NSPasteboard, NSObject, Boolean)
DragPromisedFilesOfTypes(String[], RectangleF, NSObject, Boolean, NSEvent) : Boolean
DrawFocusRingMask()
DrawPageBorder(SizeF)
DrawRect(RectangleF)
DrawSheetBorder(SizeF)
EnterFullscreenModeWithOptions(NSScreen, NSDictionary)
ExerciseAmbiguityInLayout()
ExitFullscreenModeWithOptions(NSDictionary)
static
FocusView() : NSView
GetAlignmentRectForFrame(RectangleF) : RectangleF
GetConstraintsAffectingLayout(NSLayoutConstraintOrientation) : NSLayoutConstraint[]
GetContentCompressionResistancePriority(NSLayoutConstraintOrientation) : NSLayoutPriority
GetContentHuggingPriorityForOrientation(NSLayoutConstraintOrientation) : NSLayoutPriority
GetFrameForAlignmentRect(RectangleF) : RectangleF
GState() : Int32
HitTest(PointF) : NSView
InvalidateIntrinsicContentSize()
IsDescendantOf(NSView) : Boolean
KnowsPageRange(ref NSRange) : Boolean
Layout()
LayoutSubtreeIfNeeded()
LocationOfPrintRect(RectangleF) : PointF
LockFocus()
LockFocusIfCanDraw() : Boolean
LockFocusIfCanDrawInContext(NSGraphicsContext) : Boolean
MakeBackingLayer() : CALayer
MenuForEvent(NSEvent) : NSMenu
MouseinRect(PointF, RectangleF) : Boolean
NeedsToDraw(RectangleF) : Boolean
NoteFocusRingMaskChanged()
PerformDragOperation(NSDraggingInfo) : Boolean
PerformKeyEquivalent(NSEvent) : Boolean
PerformMnemonic(String)
PrepareForDragOperation(NSDraggingInfo) : Boolean
Print(NSObject)
RectForPage(Int32) : RectangleF
RegisteredDragTypes() : String[]
RegisterForDraggedTypes(String[])
ReleaseGState()
RemoveAllToolTips()
RemoveConstraint(NSLayoutConstraint)
RemoveConstraints(NSLayoutConstraint[])
RemoveCursorRect(RectangleF, NSCursor)
RemoveFromSuperview()
RemoveFromSuperviewWithoutNeedingDisplay()
RemoveToolTip(Int32)
RemoveTrackingArea(NSTrackingArea)
RemoveTrackingRect(Int32)
RenewGState()
ReplaceSubviewWith(NSView, NSView)
static
RequiresConstraintBasedLayout() : Boolean
ResetCursorRects()
ResizeSubviewsWithOldSize(SizeF)
ResizeWithOldSuperviewSize(SizeF)
RotateByAngle(Single)
ScaleUnitSquareToSize(SizeF)
ScrollPoint(PointF)
ScrollRectby(RectangleF, SizeF)
ScrollRectToVisible(RectangleF) : Boolean
SetBoundsOrigin(PointF)
SetBoundsSize(SizeF)
SetContentCompressionResistancePriority(NSLayoutPriority, NSLayoutConstraintOrientation)
SetContentHuggingPriorityforOrientation(NSLayoutPriority, NSLayoutConstraintOrientation)
SetFrameOrigin(PointF)
SetFrameSize(SizeF)
SetKeyboardFocusRingNeedsDisplay(RectangleF)
SetNeedsDisplayInRect(RectangleF)
SetUpGState()
ShouldDelayWindowOrderingForEvent(NSEvent) : Boolean
TrackingAreas() : NSTrackingArea[]
TranslateOriginToPoint(PointF)
TranslateRectsNeedingDisplayInRectby(RectangleF, SizeF)
UnlockFocus()
UnregisterDraggedTypes()
UpdateConstraints()
UpdateConstraintsForSubtreeIfNeeded()
UpdateTrackingAreas()
ViewDidEndLiveResize()
ViewDidHide()
ViewDidMoveToSuperview()
ViewDidMoveToWindow()
ViewDidUnhide()
ViewWillDraw()
ViewWillMoveToSuperview(NSView)
ViewWillMoveToWindow(NSWindow)
ViewWillStartLiveResize()
ViewWithTag(Int32) : NSObject
VisibleRect() : RectangleF
WillRemoveSubview(NSView)
WriteEpsInsideRect(RectangleF, NSPasteboard)
WritePdfInsideRect(RectangleF, NSPasteboard)

Protected Methods

override
Dispose(Boolean)
Releases the resourced used by the NSView object.