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
- remotingproxy.cs
- StorageConditionPropertyMapping.cs
- TransportContext.cs
- ExclusiveTcpTransportManager.cs
- IncrementalHitTester.cs
- NetStream.cs
- List.cs
- Comparer.cs
- CommandBinding.cs
- ErrorProvider.cs
- AppliedDeviceFiltersDialog.cs
- Queue.cs
- Matrix3DConverter.cs
- NameValuePair.cs
- BinaryReader.cs
- Base64Stream.cs
- UrlParameterWriter.cs
- UIElementHelper.cs
- HttpGetClientProtocol.cs
- DataProtection.cs
- HtmlImage.cs
- httpserverutility.cs
- XmlSchemaNotation.cs
- FloaterBaseParagraph.cs
- AmbientEnvironment.cs
- OptimizerPatterns.cs
- ChangePassword.cs
- SolidBrush.cs
- DataViewListener.cs
- NumberAction.cs
- ControllableStoryboardAction.cs
- WhitespaceRuleLookup.cs
- PersonalizablePropertyEntry.cs
- BindingExpressionBase.cs
- ConfigurationSectionGroupCollection.cs
- AsyncOperationManager.cs
- WindowsHyperlink.cs
- AsyncResult.cs
- CodeSnippetStatement.cs
- DocumentAutomationPeer.cs
- Enumerable.cs
- RelatedEnd.cs
- UdpDiscoveryEndpoint.cs
- SHA512Managed.cs
- EntityDataSourceSelectedEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- QilSortKey.cs
- CanExecuteRoutedEventArgs.cs
- BitmapScalingModeValidation.cs
- FlowDocumentView.cs
- ResourceAssociationType.cs
- EncryptedPackageFilter.cs
- EdmError.cs
- ButtonFieldBase.cs
- DiagnosticTrace.cs
- GatewayDefinition.cs
- _CacheStreams.cs
- AstNode.cs
- ImageListUtils.cs
- MenuItemAutomationPeer.cs
- HasCopySemanticsAttribute.cs
- SqlInternalConnectionSmi.cs
- ToolStripSplitButton.cs
- SmiTypedGetterSetter.cs
- DispatcherTimer.cs
- ToolStripDesigner.cs
- CurrentTimeZone.cs
- IMembershipProvider.cs
- StorageEndPropertyMapping.cs
- DropShadowEffect.cs
- BamlLocalizationDictionary.cs
- XamlSerializerUtil.cs
- CodeAttributeDeclarationCollection.cs
- StdValidatorsAndConverters.cs
- FontStyles.cs
- ServicePointManagerElement.cs
- DirectoryNotFoundException.cs
- DataServiceBehavior.cs
- PersianCalendar.cs
- WorkflowItemsPresenter.cs
- FixedSOMPage.cs
- CheckBoxAutomationPeer.cs
- ForEachAction.cs
- CharEntityEncoderFallback.cs
- NamespaceListProperty.cs
- NotifyCollectionChangedEventArgs.cs
- DocumentXPathNavigator.cs
- SiteOfOriginContainer.cs
- ValidationSummary.cs
- PointConverter.cs
- XmlTypeAttribute.cs
- Misc.cs
- XmlSchemaSimpleContent.cs
- BaseAsyncResult.cs
- EventLog.cs
- AnnotationResource.cs
- Span.cs
- EntityViewContainer.cs
- ThreadSafeList.cs
- PermissionToken.cs