Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1305600 / 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
- ContentPlaceHolder.cs
- CompilationLock.cs
- RootProfilePropertySettingsCollection.cs
- CompensationExtension.cs
- ProgressBarHighlightConverter.cs
- Stack.cs
- TreeChangeInfo.cs
- X509CertificateValidator.cs
- DynamicRouteExpression.cs
- WebPartConnectionsConnectVerb.cs
- WindowsListViewItemCheckBox.cs
- AxisAngleRotation3D.cs
- ClickablePoint.cs
- CodeObjectCreateExpression.cs
- TrackingMemoryStreamFactory.cs
- _LocalDataStoreMgr.cs
- MetadataArtifactLoaderFile.cs
- UserControl.cs
- OperationValidationEventArgs.cs
- ElementMarkupObject.cs
- Util.cs
- _ProxyChain.cs
- PasswordTextContainer.cs
- MasterPageParser.cs
- JsonEncodingStreamWrapper.cs
- DesignerDeviceConfig.cs
- DeriveBytes.cs
- XmlSchemaGroupRef.cs
- TreeNodeBinding.cs
- TextPattern.cs
- SelectedGridItemChangedEvent.cs
- MasterPageParser.cs
- ComponentEvent.cs
- DocumentSequence.cs
- StyleModeStack.cs
- SimpleHandlerFactory.cs
- Properties.cs
- PropertyTabAttribute.cs
- KeyedQueue.cs
- CalendarDay.cs
- ConfigurationPropertyCollection.cs
- GridViewCancelEditEventArgs.cs
- WinOEToolBoxItem.cs
- GeneralTransform3DGroup.cs
- EntityParameter.cs
- PassportPrincipal.cs
- ContainerTracking.cs
- Size3D.cs
- BackgroundWorker.cs
- CharConverter.cs
- BamlLocalizableResource.cs
- ClientSettings.cs
- Int32KeyFrameCollection.cs
- ResizingMessageFilter.cs
- EdmRelationshipRoleAttribute.cs
- UITypeEditor.cs
- DataTableMapping.cs
- GridViewRow.cs
- CachedTypeface.cs
- Membership.cs
- Atom10FormatterFactory.cs
- StreamWriter.cs
- JsonFormatGeneratorStatics.cs
- PersonalizationState.cs
- BamlRecordHelper.cs
- SemanticKeyElement.cs
- IPAddressCollection.cs
- Section.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XmlTextReaderImplHelpers.cs
- Keyboard.cs
- NumericPagerField.cs
- ActivityMarkupSerializationProvider.cs
- DataGridLength.cs
- _ConnectStream.cs
- Operand.cs
- IdentityReference.cs
- XmlDictionary.cs
- InputDevice.cs
- FileVersionInfo.cs
- RemoteWebConfigurationHostStream.cs
- WebBrowserPermission.cs
- CellParaClient.cs
- ComplusTypeValidator.cs
- Thumb.cs
- EncoderFallback.cs
- StylusOverProperty.cs
- BindingsCollection.cs
- VisualStyleRenderer.cs
- XmlNamedNodeMap.cs
- DictionaryBase.cs
- Attributes.cs
- XmlSchemas.cs
- ScalarType.cs
- BamlVersionHeader.cs
- DateTimeValueSerializerContext.cs
- _ListenerAsyncResult.cs
- OdbcInfoMessageEvent.cs
- SynchronizedInputAdaptor.cs
- CookieHandler.cs