NSStringDrawingContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures and track the scale factor and tracking adjustements used when drawing attributed strings.
[Foundation.Register("NSStringDrawingContext", true)]
public class NSStringDrawingContext : Foundation.NSObject
[<Foundation.Register("NSStringDrawingContext", true)>]
type NSStringDrawingContext = class
inherit NSObject
- Inheritance
- Attributes
Remarks
You can use instances of this class to either configure the scale factor or the tracking adjustements used when drawing an attributed string.
You can set the properties up front with the MinimumScaleFactor and MinimumTrackingAdjustment.
After drawing you can examine the actual values used by examining the ActualScaleFactor and ActualTrackingAdjustment properties.
Constructors
| Name | Description |
|---|---|
| NSStringDrawingContext() |
Creates a new NSStringDrawingContext with default values. |
| NSStringDrawingContext(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| NSStringDrawingContext(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| ActualScaleFactor |
Actual scale factor used during the drawing operation. |
| ActualTrackingAdjustment |
Developers should not use this deprecated property. |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| MinimumScaleFactor | |
| MinimumTrackingAdjustment |
Desired tracking adjustement (minimum space to maintain between characteres) desired to be used during the drawing operation. |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| TotalBounds |
Boundaries used by the drawing operation. |
| Zone | (Inherited from NSObject) |