Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // 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
- MsmqOutputMessage.cs
- CodeCompiler.cs
- ServiceModelStringsVersion1.cs
- IgnoreSection.cs
- WebPartHelpVerb.cs
- OuterGlowBitmapEffect.cs
- PersonalizationState.cs
- OleDbWrapper.cs
- DispatcherHooks.cs
- GridViewRowPresenterBase.cs
- GridViewColumnHeaderAutomationPeer.cs
- Exception.cs
- MergeLocalizationDirectives.cs
- StartUpEventArgs.cs
- OdbcErrorCollection.cs
- ComplusEndpointConfigContainer.cs
- ToggleProviderWrapper.cs
- FragmentQueryKB.cs
- SoapFaultCodes.cs
- OleDbPropertySetGuid.cs
- KeyValuePairs.cs
- DocumentOrderQuery.cs
- UniqueConstraint.cs
- ExtendedPropertyDescriptor.cs
- RequestResponse.cs
- MouseEventArgs.cs
- NamedElement.cs
- Parser.cs
- RenderDataDrawingContext.cs
- ToolStripControlHost.cs
- DataGridViewCellLinkedList.cs
- EdmConstants.cs
- UrlMappingCollection.cs
- ButtonAutomationPeer.cs
- WebServiceClientProxyGenerator.cs
- TraceSection.cs
- LambdaCompiler.Binary.cs
- IISMapPath.cs
- PermissionSet.cs
- RelationshipEnd.cs
- DbConnectionInternal.cs
- BamlTreeUpdater.cs
- CodeMethodReturnStatement.cs
- DocumentApplicationState.cs
- FontStretchConverter.cs
- ContourSegment.cs
- LocalizedNameDescriptionPair.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ErrorHandlerFaultInfo.cs
- InputLanguage.cs
- XamlPathDataSerializer.cs
- XmlResolver.cs
- HtmlImage.cs
- HtmlInputCheckBox.cs
- XmlSchemaComplexContentRestriction.cs
- ColorMatrix.cs
- PointLight.cs
- SafeBitVector32.cs
- SimpleType.cs
- CodeCatchClauseCollection.cs
- FtpCachePolicyElement.cs
- DbParameterCollection.cs
- CompilerGeneratedAttribute.cs
- GeneralTransform3DCollection.cs
- StringUtil.cs
- Peer.cs
- XmlSchemaSimpleContent.cs
- ExceptionUtility.cs
- RegexCaptureCollection.cs
- FontWeight.cs
- WebPartsSection.cs
- SelectionRange.cs
- DataControlFieldCell.cs
- MediaElement.cs
- EdmItemCollection.cs
- SqlDependencyUtils.cs
- AVElementHelper.cs
- SqlXmlStorage.cs
- LogicalMethodInfo.cs
- LiteralControl.cs
- LicenseManager.cs
- BrowserCapabilitiesCodeGenerator.cs
- ObjectListCommandEventArgs.cs
- TransactionScope.cs
- TextBoxRenderer.cs
- LockedHandleGlyph.cs
- BuildManager.cs
- Point3D.cs
- Point3DValueSerializer.cs
- ExecutionEngineException.cs
- CodeEventReferenceExpression.cs
- DetailsViewInsertEventArgs.cs
- DesignColumnCollection.cs
- ActiveXSite.cs
- StructuralCache.cs
- KeyNotFoundException.cs
- Inflater.cs
- OracleBinary.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- BasicHttpSecurity.cs