Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / Text / MarkerProperties.cs / 1 / MarkerProperties.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: MarkerProperties.cs // // Description: Marker properties. // // History: // 06/06/2003 : [....] - created. // 07/18/2003 : [....] - converted to new Property Engine. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using System.Windows.Media.TextFormatting; using MS.Internal.PtsHost.UnsafeNativeMethods; // Relative line height from PTS namespace MS.Internal.Text { // --------------------------------------------------------------------- // Marker properties. // --------------------------------------------------------------------- internal sealed class MarkerProperties { ////// Constructor. /// ////// The listWidth parameter gives the width of the list element, and is used to clip the MarkerOffset value /// internal MarkerProperties(List list, int index) { _offset = list.MarkerOffset; // Negative value for offset because it is required by TextFormatter line box model. // If offset is NaN - default value - set it as 0.5 * line height if (Double.IsNaN(_offset)) { // Obtain list's line height to set defualt marker offsert double lineHeight = DynamicPropertyReader.GetLineHeightValue(list); _offset = - 0.5 * lineHeight; } else { _offset = -_offset; } _style = list.MarkerStyle; _index = index; } // ------------------------------------------------------------------ // GetTextMarkerProperties // ----------------------------------------------------------------- internal TextMarkerProperties GetTextMarkerProperties(TextParagraphProperties textParaProps) { return new TextSimpleMarkerProperties(_style, _offset, _index, textParaProps); } // ------------------------------------------------------------------ // Marker style // ------------------------------------------------------------------ private TextMarkerStyle _style; // ----------------------------------------------------------------- // Distance from line start to the end of the marker symbol. // ------------------------------------------------------------------ private double _offset; // ----------------------------------------------------------------- // Autonumbering counter of counter-style marker. // ----------------------------------------------------------------- private int _index; } } // 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
- NavigationWindow.cs
- DataControlFieldCell.cs
- PropertyConverter.cs
- FilterFactory.cs
- FormsAuthenticationUser.cs
- XmlSerializationGeneratedCode.cs
- InvalidAsynchronousStateException.cs
- WebPartChrome.cs
- DataSourceHelper.cs
- DataSourceHelper.cs
- Comparer.cs
- StrokeCollectionConverter.cs
- XMLUtil.cs
- Validator.cs
- AmbientLight.cs
- StackSpiller.Bindings.cs
- HttpClientCertificate.cs
- DataGridViewCellParsingEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- DataMemberConverter.cs
- ImageCodecInfoPrivate.cs
- Rotation3D.cs
- VirtualizingPanel.cs
- WebPartExportVerb.cs
- BitmapEffectRenderDataResource.cs
- SQLByteStorage.cs
- LocatorGroup.cs
- TabletDeviceInfo.cs
- Menu.cs
- RoutedUICommand.cs
- ToolboxComponentsCreatingEventArgs.cs
- LinearKeyFrames.cs
- ManagementOptions.cs
- StrongName.cs
- BamlLocalizationDictionary.cs
- Wildcard.cs
- SerializationObjectManager.cs
- DeadLetterQueue.cs
- SqlPersonalizationProvider.cs
- Propagator.ExtentPlaceholderCreator.cs
- RubberbandSelector.cs
- Rights.cs
- HtmlUtf8RawTextWriter.cs
- FontResourceCache.cs
- ActivityInterfaces.cs
- NumberAction.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- XmlUtil.cs
- NavigationFailedEventArgs.cs
- XmlNavigatorFilter.cs
- PointAnimationClockResource.cs
- AdobeCFFWrapper.cs
- TrackingExtract.cs
- WebContentFormatHelper.cs
- RunClient.cs
- CodeComment.cs
- PassportIdentity.cs
- TableItemPatternIdentifiers.cs
- URLEditor.cs
- Boolean.cs
- FileStream.cs
- LinearKeyFrames.cs
- HwndHostAutomationPeer.cs
- ListItemConverter.cs
- MultiDataTrigger.cs
- RelatedImageListAttribute.cs
- InstanceKeyCollisionException.cs
- ResourceContainer.cs
- AutomationElement.cs
- GenericIdentity.cs
- MultilineStringEditor.cs
- URIFormatException.cs
- CollectionEditorDialog.cs
- WebPartVerbCollection.cs
- UnionExpr.cs
- SqlWorkflowInstanceStore.cs
- ValueChangedEventManager.cs
- GreaterThanOrEqual.cs
- cookiecontainer.cs
- Pen.cs
- DesignerGenericWebPart.cs
- ProcessStartInfo.cs
- XmlAttributeOverrides.cs
- EncoderBestFitFallback.cs
- RenderDataDrawingContext.cs
- SourceChangedEventArgs.cs
- ParseHttpDate.cs
- TreeWalkHelper.cs
- AnnotationComponentManager.cs
- TextEndOfSegment.cs
- SafeRightsManagementEnvironmentHandle.cs
- StringWriter.cs
- _Events.cs
- SqlNamer.cs
- AbandonedMutexException.cs
- AncestorChangedEventArgs.cs
- XamlBrushSerializer.cs
- Shape.cs
- COM2PictureConverter.cs
- serverconfig.cs