Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / DashStyles.cs / 1 / DashStyles.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Select.cs
- HashMembershipCondition.cs
- RequestQueryProcessor.cs
- BaseParagraph.cs
- SubclassTypeValidator.cs
- PropertyCondition.cs
- ConstructorNeedsTagAttribute.cs
- DataGrid.cs
- XmlSchemaSimpleTypeList.cs
- DiagnosticsConfiguration.cs
- SecureConversationDriver.cs
- XmlDataImplementation.cs
- BufferBuilder.cs
- ControlPropertyNameConverter.cs
- UIElement.cs
- ProfileManager.cs
- SpellerError.cs
- ResourceAttributes.cs
- BrowserCapabilitiesCompiler.cs
- shaperfactory.cs
- OptimalBreakSession.cs
- StringDictionaryWithComparer.cs
- TemplateColumn.cs
- _ProxyChain.cs
- XmlnsPrefixAttribute.cs
- DeploymentExceptionMapper.cs
- ColorConvertedBitmap.cs
- RegisteredHiddenField.cs
- TextBoxAutomationPeer.cs
- SourceFileBuildProvider.cs
- UserControlAutomationPeer.cs
- UnicodeEncoding.cs
- XmlImplementation.cs
- SafeNativeMethodsMilCoreApi.cs
- JsonUriDataContract.cs
- LineSegment.cs
- OleCmdHelper.cs
- Vector3dCollection.cs
- ListViewItemSelectionChangedEvent.cs
- KeyGestureValueSerializer.cs
- FolderBrowserDialogDesigner.cs
- XmlSortKeyAccumulator.cs
- MasterPage.cs
- QilExpression.cs
- StatusBarDrawItemEvent.cs
- X509WindowsSecurityToken.cs
- EntityDataReader.cs
- InkCanvasFeedbackAdorner.cs
- XamlClipboardData.cs
- RequestCacheManager.cs
- WebPart.cs
- ValidationRuleCollection.cs
- DataTransferEventArgs.cs
- HeaderLabel.cs
- HttpRequest.cs
- ProviderUtil.cs
- SoapParser.cs
- WindowsTreeView.cs
- PenContext.cs
- XmlFormatWriterGenerator.cs
- AssemblyNameEqualityComparer.cs
- NamespaceQuery.cs
- EventHandlerList.cs
- Inflater.cs
- SortableBindingList.cs
- ParseHttpDate.cs
- Padding.cs
- documentation.cs
- ExtensionDataObject.cs
- TemplateInstanceAttribute.cs
- JumpPath.cs
- XmlSchemaType.cs
- HuffmanTree.cs
- CompositeScriptReferenceEventArgs.cs
- StrokeCollectionDefaultValueFactory.cs
- Stackframe.cs
- ToolBarButtonClickEvent.cs
- ReferencedAssembly.cs
- ProcessThread.cs
- SerTrace.cs
- ActivityInfo.cs
- SafeSecurityHandles.cs
- ConstNode.cs
- XpsDigitalSignature.cs
- FormViewPagerRow.cs
- TreeNodeBinding.cs
- BinaryQueryOperator.cs
- Calendar.cs
- UrlAuthFailedErrorFormatter.cs
- Graphics.cs
- FamilyMap.cs
- BooleanAnimationUsingKeyFrames.cs
- WinEventTracker.cs
- HorizontalAlignConverter.cs
- CngUIPolicy.cs
- ConstrainedDataObject.cs
- ProtocolElement.cs
- Color.cs
- MappingException.cs
- XMLUtil.cs