Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1 / LineBreakRecord.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: LineBreakRecord // // Description: LineBreakRecord is unmanaged resouce handle to TextLineBreak // // History: // 06/07/2005 : ghermann - created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using MS.Internal.Text; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost { // --------------------------------------------------------------------- // Break record for line - holds decoration information // --------------------------------------------------------------------- internal sealed class LineBreakRecord : UnmanagedHandle { // ------------------------------------------------------------------ // Constructor. // // PtsContext - Context // TextLineBreak - Contained line break // ----------------------------------------------------------------- internal LineBreakRecord(PtsContext ptsContext, TextLineBreak textLineBreak) : base(ptsContext) { _textLineBreak = textLineBreak; } ////// Dispose the line break /// public override void Dispose() { if(_textLineBreak != null) { _textLineBreak.Dispose(); } base.Dispose(); } #region Internal Methods ////// Clones the underlying TextLineBreak /// internal LineBreakRecord Clone() { return new LineBreakRecord(PtsContext, _textLineBreak.Clone()); } internal TextLineBreak TextLineBreak { get { return _textLineBreak; } } #endregion Internal Methods #region Private Fields private TextLineBreak _textLineBreak; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: LineBreakRecord // // Description: LineBreakRecord is unmanaged resouce handle to TextLineBreak // // History: // 06/07/2005 : ghermann - created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using MS.Internal.Text; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost { // --------------------------------------------------------------------- // Break record for line - holds decoration information // --------------------------------------------------------------------- internal sealed class LineBreakRecord : UnmanagedHandle { // ------------------------------------------------------------------ // Constructor. // // PtsContext - Context // TextLineBreak - Contained line break // ----------------------------------------------------------------- internal LineBreakRecord(PtsContext ptsContext, TextLineBreak textLineBreak) : base(ptsContext) { _textLineBreak = textLineBreak; } ////// Dispose the line break /// public override void Dispose() { if(_textLineBreak != null) { _textLineBreak.Dispose(); } base.Dispose(); } #region Internal Methods ////// Clones the underlying TextLineBreak /// internal LineBreakRecord Clone() { return new LineBreakRecord(PtsContext, _textLineBreak.Clone()); } internal TextLineBreak TextLineBreak { get { return _textLineBreak; } } #endregion Internal Methods #region Private Fields private TextLineBreak _textLineBreak; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlText.cs
- NamedPermissionSet.cs
- ServicePointManagerElement.cs
- CustomCredentialPolicy.cs
- Int32CAMarshaler.cs
- SpecularMaterial.cs
- DefaultMemberAttribute.cs
- PropertyNames.cs
- UIElement.cs
- SingleStorage.cs
- StandardBindingImporter.cs
- ObfuscationAttribute.cs
- Win32KeyboardDevice.cs
- ProfileProvider.cs
- controlskin.cs
- ModifierKeysConverter.cs
- ItemCollectionEditor.cs
- HttpModuleActionCollection.cs
- SettingsPropertyValueCollection.cs
- FilteredSchemaElementLookUpTable.cs
- PointAnimation.cs
- XmlHierarchicalEnumerable.cs
- MetadataSource.cs
- ToolStrip.cs
- Permission.cs
- PersianCalendar.cs
- TransportSecurityHelpers.cs
- X509ChainElement.cs
- DropShadowBitmapEffect.cs
- WebPartEditorOkVerb.cs
- SqlSelectStatement.cs
- LeaseManager.cs
- followingsibling.cs
- SqlServer2KCompatibilityAnnotation.cs
- LoginViewDesigner.cs
- ResourceSet.cs
- embossbitmapeffect.cs
- FontSizeConverter.cs
- EditorBrowsableAttribute.cs
- DataControlImageButton.cs
- DataServiceEntityAttribute.cs
- PtsHost.cs
- TransformConverter.cs
- ToggleProviderWrapper.cs
- CriticalHandle.cs
- TrackingParameters.cs
- CheckBoxFlatAdapter.cs
- ButtonBaseAdapter.cs
- MDIWindowDialog.cs
- SelectedDatesCollection.cs
- glyphs.cs
- LicenseContext.cs
- EndpointBehaviorElement.cs
- ManagementOperationWatcher.cs
- ListControl.cs
- QueryResponse.cs
- CancellationTokenSource.cs
- HtmlHead.cs
- ResXDataNode.cs
- linebase.cs
- ModifierKeysConverter.cs
- Soap.cs
- PersistenceTypeAttribute.cs
- MULTI_QI.cs
- CodeGenerator.cs
- TableItemStyle.cs
- ThemeInfoAttribute.cs
- Win32NamedPipes.cs
- EraserBehavior.cs
- MobileCapabilities.cs
- MobileTemplatedControlDesigner.cs
- IFlowDocumentViewer.cs
- EmptyCollection.cs
- QilValidationVisitor.cs
- OleDbFactory.cs
- CustomMenuItemCollection.cs
- DateTimePicker.cs
- TemplateParser.cs
- ProjectionRewriter.cs
- ServicesUtilities.cs
- CloudCollection.cs
- CompilationPass2Task.cs
- HttpContext.cs
- PathSegmentCollection.cs
- IisTraceWebEventProvider.cs
- Convert.cs
- TextContainer.cs
- ManagementDateTime.cs
- XmlSchemaExternal.cs
- HostingPreferredMapPath.cs
- ExpandSegment.cs
- DoubleLink.cs
- wmiprovider.cs
- UrlPath.cs
- GeometryDrawing.cs
- DBConnectionString.cs
- AnnotationAdorner.cs
- LambdaCompiler.Generated.cs
- AppDomainManager.cs
- KnownTypeDataContractResolver.cs